Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 361 Bytes

ssh.md

File metadata and controls

25 lines (21 loc) · 361 Bytes

Setup passwordless ssh connection

Add configuration to local file ~/.ssh/config

Host host
    HostName 10.0.0.2
    Port 22
    User user

Host host2
    HostName 10.0.0.3
    Port 23
    User user

Generate ssh key - needed only once

ssh-keygen -t -rsa -b 2048

Copy key to remote:

ssh-copy-id [email protected]
ssh-copy-id host2