update SSH note
This commit is contained in:
parent
421882d05d
commit
8528d33f3f
@ -20,6 +20,8 @@ To connect to a server, run:
|
|||||||
|
|
||||||
ssh -p port user@server-address
|
ssh -p port user@server-address
|
||||||
|
|
||||||
|
`port` for default is `22`
|
||||||
|
|
||||||
### Copy SSH key
|
### Copy SSH key
|
||||||
|
|
||||||
1. `sudo apt-get install xclip` or `sudo pacman -S xclip`
|
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-specific options
|
||||||
Host myserver
|
Host myserver
|
||||||
HostName server-address
|
HostName ssh.heckyel.ga
|
||||||
Port port
|
IdentityFile ~/.ssh/id_rsa
|
||||||
|
user Snowden
|
||||||
|
Port 22
|
||||||
|
ServerAliveInterval 5
|
||||||
```
|
```
|
||||||
|
|
||||||
With such a configuration, the following commands are equivalent
|
With such a configuration, the following commands are equivalent
|
||||||
|
Loading…
x
Reference in New Issue
Block a user