connect to server
ssh serverSet public key authentication
ssh username@server
ssh -p port username@server
- create key on local
ssh-keygen- make sure the server hv .ssh dir. if not create it
ssh-keygen- copy the local public key to server
- now login it without passwordscp ~/.ssh/id_rsa.pub remote.server.com:.ssh/authorized_keys2
No comments:
Post a Comment