Snippets Collections
# ssh-copy-id takes care of adding your key in the right place

ssh-copy-id -i "user@hostname.example.com -p2222"

# If you don't use -i all of your public keys will be copied over.
# Also a alias for the host can be used if configured in your ssh config.

# You will be asked for the password and after that all should be taken care of.
# Test key if neccessary
ssh -i ~/.ssh/id_rsa.pub user@hostname

# Copy key over to server
ssh-copy-id [user@]hostname

# You can also just print out the key as dry run
ssh-copy-id -n [user@]hostname
ssh -i /Users/iliasdh/.ssh/nesk_vision iliasdh@34.125.137.168
star

Mon Jun 21 2021 10:21:52 GMT+0000 (UTC) https://askubuntu.com/a/265646

#ssh #server #authentification #network
star

Wed Jun 09 2021 12:30:24 GMT+0000 (UTC) https://www.ssh.com/academy/ssh/copy-id

#ssh
star

Wed Jun 09 2021 12:24:26 GMT+0000 (UTC)

#ssh
star

Tue Jan 19 2021 14:08:10 GMT+0000 (UTC)

#cloud #ssh

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension