Skip to content

Latest commit

 

History

History
19 lines (9 loc) · 596 Bytes

Useful_commands.md

File metadata and controls

19 lines (9 loc) · 596 Bytes

To authenticate with ssh with a pair of private and public key

Generate the pair of keys following these instructions

ssh-keygen -t ed25519 -C "[email protected]"

$ eval "$(ssh-agent -s)"

ssh-add ~/.ssh/id_ed25519

From the source host (home pc) run

ssh-copy-id myname@somehost

As an alternative we can use to pass to ssh the password without writing it

sshpass -f file_with_password ssh -o StrictHostKeyChecking=no username@server_address