shadedecho
Programmer
OK, I have recently installed ssh on two linux servers... one (server1) is local here at my work, behind a firewall, and the other (server2) is external.
I want to set up ssh so that my user (dummy) account, which is the same on both boxes, can log into server1 (obviously providing a password through the windows client i use to connect). Once into server1, i want to be able to ssh to server2 without providing the remote password... mainly this is because the ultimate goal is to be able to issue commands remotely using ssh without the password prompt, which is NOT scriptable it seems. In addition, I want to use scp from a script to copy files from server1 to server2 without a password prompt, which will be possible once ssh doesn't require the password prompt anymore.
I have read places on the internet that talk about this being possible, like being able to type
ssh 123.456.789.012 'date'
and have ssh execute that command on the remote machine without prompting for the user account's password.
The articles I've read mention this can be done with public and private key pairs on one or both machines, but i'm not familiar with how to do this.
I tried using
ssh-keygen -t dsa
and then
cat id_dsa.pub >> authorized_keys
as one website suggested, but that didn't work.
Can someone please explain exactly the steps I would use on both server1, and server2, to get server1 to be able to connect to (and execute commands on) server2 without an ssh password prompt?
I want to set up ssh so that my user (dummy) account, which is the same on both boxes, can log into server1 (obviously providing a password through the windows client i use to connect). Once into server1, i want to be able to ssh to server2 without providing the remote password... mainly this is because the ultimate goal is to be able to issue commands remotely using ssh without the password prompt, which is NOT scriptable it seems. In addition, I want to use scp from a script to copy files from server1 to server2 without a password prompt, which will be possible once ssh doesn't require the password prompt anymore.
I have read places on the internet that talk about this being possible, like being able to type
ssh 123.456.789.012 'date'
and have ssh execute that command on the remote machine without prompting for the user account's password.
The articles I've read mention this can be done with public and private key pairs on one or both machines, but i'm not familiar with how to do this.
I tried using
ssh-keygen -t dsa
and then
cat id_dsa.pub >> authorized_keys
as one website suggested, but that didn't work.
Can someone please explain exactly the steps I would use on both server1, and server2, to get server1 to be able to connect to (and execute commands on) server2 without an ssh password prompt?