I am having difficulties logging in to a VPS running CentOS 5.5 using Public key authentication. I can log in to both a standard user account and the root account using password authentication.
I have a 12.10 server setup in a virtual machine with its network set to bridged (essentially will be seen as a computer connected to my switch).
I installed opensshd via apt-get and was able to connect to the server using putty with my username and password.
I then set about trying to get it to use public/private key authentication.
I am trying to connect to my linux server using the following:
ssh-keygen -t rsa
I then do:
cat ~/.ssh/id_rsa.pub | ssh myusername@myserver_ip 'cat >> .ssh/authorized_keys'
I then go to my remote server and see that a "authorized_keys" file has been created. However when i try doing, "ssh myusername@myserver_ip", it is still prompting me for a password?
Why???
Not sure if the question I'm asking is correct but basically I wanted to automate this process
scp ~/.ssh/id_rsa.pub username@example.com:~/
ssh username@example.com
mkdir .ssh
cat id_rsa.pub >> .ssh/authorized_keys
rm id_rsa.pub
chmod go-w ~
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
So I thought I could create a shell script and put it in my .bash_profile like thi
Hi
I have a system PRIMARY where I can push or pull files to/from STANDBY using scp. I can also ssh without entering a password.
On the STANDBY system if I try and use scp or ssh it asks for a password.
I checked in ~/.ssh and there was no authorized_keys file on the PRIMARY server.
I'm done setting up ssh login using public/private key pair. I have my id_rsa (private key) in my ~/.ssh directory and also still have id_rsa.pub (public key) in the same directory.
I am trying to setup a password-less SSH configuration between two machines and am having trouble. There are a ton of howtos out there that I have followed and have had no success. Here are the steps that I've taken
Generate the authentication keys on the client.
I lack a lot of knowledge regarding the subject so please excuse me if my question is very ignorant.
I just started out with RSA key authentication to my test-server.
Here are the steps I did on my local computer:
ssh-keygen -t rsa
cat ~/.ssh/id_rsa | ssh root@remotehost.com -p 1234 "cat > ~/.ssh/authorized_keys"
When I do a ssh root@remotehost.com -p 1234 it still asks for the password :o
root@remotehost.com's password:
Why is it so? I already added it to the authorized keys but it still asks for the password.