FTP Login with linux to linux
Hi there,
Please dont flame me with 'google it' posts. I tried! But didnt find anything. Here's what I want: I have a file on serverA and need that file to be on serverB. It is compressed etc and I can login as root and other users in the FTP of serverA with filezilla. It uses port 22 and SFTP SSH ftp acces. Now I want to log into the ftp with the command shell from serverB TO serverA. If you dont understand my question, feel free to ask for more details. Greetings zondvloed |
Is Server A running an sftp server? This would be the first requirement if you want to use sftp to transfer a file from Server B to Server A.
If this is done; openssh should include an sftp client; so that you can do something like (on Server B): Code:
# sftp user@serverAhostname |
omg, that just did it! :D
That was what I was looking for. Nobody explained it anywhere because I didnt know what to search for. THANKS! :D But how to recieve the file now.. hmm.. never did it before.. This maybe will be the biggest adventure of my life! LETS DO IT! :D ehm.. any tips? Thanks btw |
Hi
Do you want to receive a file on server B; FROM server A? If so its fairly simple; you can do an sftp login as per my previous post; and thereafter: Code:
# get /path/to/file/filename To learn/understand all of this I suggest you search for "Linux - FTP how to" - you'll probably get results that will guide you in installing/configuring an FTP server; an FTP client or both. Remember an FTP server can be LOGGED INTO; versus an FTP client where you can ONLY use it to login to another FTP server. The commonly use FTP servers/clients in Linux are vsftpd and proftpd. You can also google these. |
Here are some basic ftp commands, once you are connected:
http://www.cs.colostate.edu/helpdocs/ftp.html Kind regards |
@repo - Thanks, this is an excellent reference which I've also bookmarked :hattip:
|
Jeah! 5 mb/ps retrieving 5,5gb. ^^ works fine
thanks all. Btw, offtopic; is there a faster way to cd ".." (go to the parent dir)? |
Quote:
Glad you've solved your problem - please mark this thread as "Solved" (under Thread Tools). |
go with cd to the parent map that you are in at the moment.
So if you are in /home/servers and want to go in to /home To do that, i now always do; cd ".." |
Hi
I don't think there's an "easier" way to do it. You could write a simple script but it will just as much typing/characters to move up a directory. In my opinion learn to get used to the "cd .." ;) |
ah k, thanks m8!
Now this tread is DUBBLE SOLVED! ^^ |
Glad you've solved your problems ;)
Just a side note on LQ, please note its against the rules to use "text speak" - so please write your words in full (avoid saying things like "k" etc) :) |
All times are GMT -5. The time now is 04:06 PM. |