diff options
author | Jesús <heckyel@hyperbola.info> | 2019-07-13 21:35:46 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-07-13 21:35:46 -0500 |
commit | 8528d33f3f0e32b017e81173ef62b36d60bbeef2 (patch) | |
tree | 15816fbbcb847f946a8191dbfdc4cbcdea52d935 /ssh/README.md | |
parent | 421882d05d075cc62dfb5a6f686f7a5bda909445 (diff) | |
download | book-8528d33f3f0e32b017e81173ef62b36d60bbeef2.tar.lz book-8528d33f3f0e32b017e81173ef62b36d60bbeef2.tar.xz book-8528d33f3f0e32b017e81173ef62b36d60bbeef2.zip |
update SSH note
Diffstat (limited to 'ssh/README.md')
-rw-r--r-- | ssh/README.md | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ssh/README.md b/ssh/README.md index aa80f36..c3905c8 100644 --- a/ssh/README.md +++ b/ssh/README.md @@ -20,6 +20,8 @@ To connect to a server, run: ssh -p port user@server-address +`port` for default is `22` + ### Copy SSH key 1. `sudo apt-get install xclip` or `sudo pacman -S xclip` @@ -34,9 +36,11 @@ The client can be configured to store common options and hosts. All options can # host-specific options Host myserver - HostName server-address - Port port - + HostName ssh.heckyel.ga + IdentityFile ~/.ssh/id_rsa + user Snowden + Port 22 + ServerAliveInterval 5 ``` With such a configuration, the following commands are equivalent |