ssh copy id to remote sever code example
Example 1: copy ssh key to remote server
ssh-copy-id -i ~/.ssh/mykey.pub user@host
Example 2: how to copy ssh key
ssh-copy-id -i ~/.ssh/mykey user@host
Example 3: ssh copy id to remote sever
1. ssh-keygen (press enter / do not enter any passwords)
2. ssh-keyscan hpc.university.edu > known_hosts (press enter)
3. ssh-copy-id [email protected] ( press Enter) #you might need some password to go through university VPN in this case , you can enter them )