I'm following a tutorial and it's going along well. I used ssh to connect fine. Then I created a private and public key. Which leads me to my first question it says that the keys have been saved to
Your identification has been saved in /home/localuser/.ssh/id_dsa.
Your public key has been saved in /home/localuser/.ssh/id_dsa.pub.
But when I look in that folder I don't see the .ssh folder. Is this done for security reasons and it's supposed to be hidden?
Next the tutorial instructs to manually copy the public key to the remote machine using this command:
scp ~/.ssh/id_dsa.pub firstname.lastname@example.org:.ssh/authorized_keys
When I run that command I get this response.
ssh: connect to host mywebpage.com port 22: Connection refused lost connection
So, like I do when I first connected by ssh, I add -p 2222 at the end of scp command. I then get this response:
2222: No such file or directory
I've also tried uppercase -P 2222
What am I doing wrong?
PS I'm using Linux Mint 15 and Cinnamon
-p 2222 right after
ssh worked. However I've ran into another issue.
It then transferred the file. However I had to create the directory myself before it would transfer. Now it's supposed to ask my for my passphrase instead of my password. It didn't do this so then the tutorial said to run these commands.
chmod 700 ~/.ssh &
chmod 600 ~/.ssh/authorized_keys. But when I login it still asks for my password and not my passphrase.
Why is it not working?
EDIT: I ran
-v these are the mentions of
debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: publickey debug1: Offering DSA public key: /home/localusername/.ssh/id_dsa debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Trying private key: /home/localusername/.ssh/id_rsa debug1: Trying private key: /home/localusername/.ssh/id_ecdsa debug1: Next authentication method: keyboard-interactive
I'll note this is prior to logging in.