Hello There, I have a small problem here which I wish to describe as an example.OK so here it is .I have a client and a server both UNIX boxes.I wish to run SFTP on the client as user A and authenticate as user B on the server which is going to be accomplished using a script.Se user A is the owner of the script and he authenticates to server as user B .Now the problem is when the authentication happens it asks for a manual password entry which doesn't make sense .I have used ssh rsa keys ..but still no solution as the authentication needs to be automatic.Any solution to the problem is welcome
Thanks Penguinpuppy
What you need is "Expect".
-- Regards Pankaj
On Wed, Mar 25, 2009 at 11:29 PM, PenguinPuPPy penguinpuppy@gmail.comwrote:
Hello There, I have a small problem here which I wish to describe as an example.OK so here it is .I have a client and a server both UNIX boxes.I wish to run SFTP on the client as user A and authenticate as user B on the server which is going to be accomplished using a script.Se user A is the owner of the script and he authenticates to server as user B .Now the problem is when the authentication happens it asks for a manual password entry which doesn't make sense .I have used ssh rsa keys ..but still no solution as the authentication needs to be automatic.Any solution to the problem is welcome
Thanks Penguinpuppy
-- To Love The Penguin(aka TUX) You Need To Be As Faithful As A Puppy -- http://mm.glug-bom.org/mailman/listinfo/linuxers
PenguinPuPPy wrote:
Hello There, I have a small problem here which I wish to describe as an example.OK so here it is .I have a client and a server both UNIX boxes.I wish to run SFTP on the client as user A and authenticate as user B on the server which is going to be accomplished using a script.Se user A is the owner of the script and he authenticates to server as user B .Now the problem is when the authentication happens it asks for a manual password entry which doesn't make sense .I have used ssh rsa keys ..but still no solution as the authentication needs to be automatic.Any solution to the problem is welcome
http://www.unix.com/shell-programming-scripting/17929-automate-sftp-using-un...
There are two issues actually:
1. Automating loging 2. Password less authentication
For (1) you write a "Expect" script and for (2) you can copy over your ssh public key into ~/.ssh/authorized_keys file on the server.
-- Regards Pankaj
On Wed, Mar 25, 2009 at 11:42 PM, Rony gnulinuxist@gmail.com wrote:
PenguinPuPPy wrote:
Hello There, I have a small problem here which I wish to describe as an example.OK so here it is .I have a client and a server both UNIX boxes.I wish to run SFTP on the client as user A and authenticate as user B on
the
server which is going to be accomplished using a script.Se user A is the owner of the script and he authenticates to server as user B .Now the problem is when the authentication happens it asks for a manual password entry which doesn't make sense .I have used ssh rsa keys ..but still no solution as the authentication needs to be automatic.Any solution to the problem is welcome
http://www.unix.com/shell-programming-scripting/17929-automate-sftp-using-un...
-- Regards,
Rony.
GNU/Linux ! No Viruses No Spyware Only Freedom.
On Wed, Mar 25, 2009 at 11:29 PM, PenguinPuPPy penguinpuppy@gmail.com wrote:
Hello There, I have a small problem here which I wish to describe as an example.OK so here it is .I have a client and a server both UNIX boxes.I wish to run SFTP on the client as user A and authenticate as user B on the
If you simply want to copy files from client to server or vice-versa, you can use scp instead of sftp:
scp user@server:path/to/files client_files OR scp client_files user@server:path/to/files/