I'm trying to transfer my public key to my server. I've ran ssh-copy-id to do so but nothing really happened. Nor the .ssh nor the authorized_keys folder is made. The public key is not in my home directory but I think is stored elsewhere since. What am I doing wrong?

/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys john@mydomain's password: Number of key(s) added: 1 Now try logging into the machine, with: "ssh 'john@mydomain'" and check to make sure that only the key(s) you wanted were added. 
1

1 Answer

When you generated your keys, that is usually the dir that they will be in if you didn't specify a full path. Try this?

start at your ~/

cd mkdir .ssh chmod 700 .ssh cd .ssh ssh-keygen -t rsa -f id_rsa ssh-copy-id <ip> 
2