-
Open Terminal on local machine
-
Paste the text below, substituting in your email address.
ssh-keygen -t rsa -b 4096 -C "[email protected]"
- Copy the key to remote server using the following command. Enter the password when prompted
ssh-copy-id username@server_ip_address
- Now test the SSH or SCP command, it shouldn't ask for password. If it does, remove home directory or ssh keys from remote machine
ssh username@server_ip_address