LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-28-2010, 06:09 AM   #1
zondvloed
LQ Newbie
 
Registered: Sep 2010
Posts: 9

Rep: Reputation: 0
Post 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
 
Old 10-28-2010, 06:25 AM   #2
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
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
That will allow you to login to the sftp server on Server A; thereafter you can use "normal" ftp commands to send/receive files securely.
 
Old 10-28-2010, 06:32 AM   #3
zondvloed
LQ Newbie
 
Registered: Sep 2010
Posts: 9

Original Poster
Rep: Reputation: 0
omg, that just did it!

That was what I was looking for. Nobody explained it anywhere because I didnt know what to search for. THANKS!

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!

ehm.. any tips? Thanks btw
 
Old 10-28-2010, 06:36 AM   #4
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
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
It will retrieve the file and drop in the directory you're in when you execute the sftp login.

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.
 
Old 10-28-2010, 06:39 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Here are some basic ftp commands, once you are connected:
http://www.cs.colostate.edu/helpdocs/ftp.html

Kind regards
 
Old 10-28-2010, 06:40 AM   #6
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
@repo - Thanks, this is an excellent reference which I've also bookmarked
 
Old 10-28-2010, 07:08 AM   #7
zondvloed
LQ Newbie
 
Registered: Sep 2010
Posts: 9

Original Poster
Rep: Reputation: 0
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)?
 
Old 10-28-2010, 07:44 AM   #8
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Quote:
Btw, offtopic; is there a faster way to cd ".." (go to the parent dir)?
Can you maybe explain a bit more what you're trying to achieve exactly?

Glad you've solved your problem - please mark this thread as "Solved" (under Thread Tools).
 
Old 10-29-2010, 03:28 AM   #9
zondvloed
LQ Newbie
 
Registered: Sep 2010
Posts: 9

Original Poster
Rep: Reputation: 0
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 ".."
 
Old 10-29-2010, 03:42 AM   #10
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
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 .."
 
Old 11-01-2010, 04:14 AM   #11
zondvloed
LQ Newbie
 
Registered: Sep 2010
Posts: 9

Original Poster
Rep: Reputation: 0
ah k, thanks m8!

Now this tread is DUBBLE SOLVED! ^^
 
Old 11-01-2010, 04:43 AM   #12
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
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)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot login to FC3 linux but can login to FC2 linux and windows XP boot powah Linux - General 3 04-18-2006 03:53 PM
FTP Server Up and running... how do I hide ftp users from local login screen? joe1031 Mandriva 2 03-18-2005 05:24 PM
Automatic ftp login for WinXP to Linux Alek Linux - Networking 2 10-21-2003 02:17 PM


All times are GMT -5. The time now is 02:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration