SFTP command line
I'm trying to understand the syntax for connecting to SFTP through a proxy via the command line. In one environment where there is no proxy I'm connecting fine. I use a script that does an open and the password is sent in the string.
open sftp://UserName:UserPwd@SomeIP:port -hostkey="ssh-rsa 1024 SomeKey"
When trying it with the proxy, I open the session but I get access denied when I send the password. When I open this session via the GUI it works. The password is saved in the session.
! 2011-09-13 09:37:26.720 Using username "UserName".
. 2011-09-13 09:37:26.767 Prompt (7, SSH password, , &Password: )
. 2011-09-13 09:37:26.767 Using stored password.
. 2011-09-13 09:37:26.767 Sent password
! 2011-09-13 09:37:26.814 Access denied
my command is:
open Somefolder/UserName@SomeIP -hostkey="ssh-rsa 1024 SomeKey"
Is the correct password actually being sent? Not really familiar with the ins and outs of connecting in this fashion.
open sftp://UserName:UserPwd@SomeIP:port -hostkey="ssh-rsa 1024 SomeKey"
When trying it with the proxy, I open the session but I get access denied when I send the password. When I open this session via the GUI it works. The password is saved in the session.
! 2011-09-13 09:37:26.720 Using username "UserName".
. 2011-09-13 09:37:26.767 Prompt (7, SSH password, , &Password: )
. 2011-09-13 09:37:26.767 Using stored password.
. 2011-09-13 09:37:26.767 Sent password
! 2011-09-13 09:37:26.814 Access denied
my command is:
open Somefolder/UserName@SomeIP -hostkey="ssh-rsa 1024 SomeKey"
Is the correct password actually being sent? Not really familiar with the ins and outs of connecting in this fashion.