var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
What is the command to download a file via ftp in ssh?
I already connected to an ftp site/server in shell and shown
prompt...but I don't know the exact command to run to download an rpm
I tried wget file.rpm, mget file.rpm, nothing works
So, you're sshed in, and you are connected to another server via ftp?
You're going to run
then you're going to type "quit" to exit ftp
then you're going to run
rpm -Uvh file.rpm
and it's installed after that.
You could have just typed
wget ftp://user:[email protected]/path/to/file.rpm
via your regular command prompt, and that would download it for you. You would still have to run rpm -Uvh file.rpm to install it after that though.
mget is for getting multiple files.
- Using ssh protocol you transfer files with: scp or sftp
- Use FTP? while using SSH to connect to your server: ncftp, wget, mirror, lftp
- Lftp and wget are best for FTP
$ ftp some.server.com
ftp> mget file.foo
ftp> open some.server.com
ftp> mget file*
mget -R for recursive.
Try if you have LFTP? `which lftp`
wget --passive-ftp ftp://some.server.com/file.foo
Originally Posted by Zion Ahead