ftp access over shh
Is there anyway I can provide my ftp user-name and password over ssh command to a remote machine?
e.g., ssh ~/ssh/key user1@$machine 'cd test; ftp $host; HERE we require access info' |
I think that---once you log in using ssh---you are running the remote machine, and can no longer command the local machine. (not 100% sure about this).
There is a command called sftp which I think becomes available once ssh is installed---again: not 100% sure/ Why not use regular ftp? |
The testbed I'm working on offers vsftp server for some reason, and my experiment requires ftp-ing that machine. I have some limitations in installing and removing packages.
|
confirm: I just logged in to my other machine using sftp. Seems to work like regular ftp.
|
I just made a quick check on the sftp, and it also requires access-info! The same as normal ftp above, right?
|
After figuring out, sftp is a modified version of ssh that allows encrypted ftp flows. I not allowed to to create ssh and the like between remote nodes in the infrastructure I'm working on; the only allowed is to ssh those remote-machines from my local machine.
|
You can create a tunnel with ssh and use this for the ftp access. But for now I’m puzzled from where and to where you want to connect.
|
All times are GMT -5. The time now is 09:01 AM. |