LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   ftp access over shh (https://www.linuxquestions.org/questions/programming-9/ftp-access-over-shh-4175417214/)

ali2011 07-17-2012 10:59 AM

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'

pixellany 07-17-2012 11:08 AM

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?

ali2011 07-17-2012 11:13 AM

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.

pixellany 07-17-2012 11:14 AM

confirm: I just logged in to my other machine using sftp. Seems to work like regular ftp.

ali2011 07-17-2012 11:21 AM

I just made a quick check on the sftp, and it also requires access-info! The same as normal ftp above, right?

ali2011 07-17-2012 11:40 AM

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.

Reuti 07-18-2012 07:12 AM

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.