LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 03-13-2007, 03:03 PM   #1
jtatarin
LQ Newbie
 
Registered: Mar 2007
Posts: 10

Rep: Reputation: 0
FTP Server On Root?


This is probably a very silly question but.. Is it possible (or reccomended) to install a FTP server on your linux server for the root folder? I have Ubuntu 6.10 server installed and I am connecting to it VIA SSH on my LAN (as root)... When it comes to changing files it would be so much easier to change them and re-upload them using FTP to whatever folder needs to be fixed. I am used to webdesign where its easy to just download a file change it and re-upload. Unless this can also be done with SSH? Can you download a file from a server using SSH and re-upload it back?
 
Old 03-13-2007, 04:57 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Noooooo! (in reference to a root FTP server)

There's a utility called sftp, which emulates an FTP session, using only SSH. Use that instead.

Dave
 
Old 03-13-2007, 05:24 PM   #3
jtatarin
LQ Newbie
 
Registered: Mar 2007
Posts: 10

Original Poster
Rep: Reputation: 0
oh nice thanks very much. Now is this sftp like putty? Is it just a client or do I need to install and run an sftp server on my server?
 
Old 03-13-2007, 05:29 PM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hi.

You'll have to have an SSH server (sshd) running on the remote machine. Then you can use sftp (or PuTTY, if you like) to transfer files to and from the local client. sftp acts just like the commandline 'ftp' program.

Dave
 
Old 03-13-2007, 08:20 PM   #5
jtatarin
LQ Newbie
 
Registered: Mar 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Oh ok. I have openssh installed and working. Thats all i need on the server side If I am understanding. I did a google search for sftp with putty and i found a different version of putty. Which I have used and have been able to log in successfully however its now quite what I was expecting. I found a manual here:

http://commandline.org.uk/2006/putty...s-using-psftp/

See if it works. I'll let you know if it doesn't! THanks

Last edited by jtatarin; 03-13-2007 at 08:26 PM.
 
Old 03-14-2007, 12:32 PM   #6
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
I would also suggest not allowing root direct access through ssh, it is a security risk for the machine. At the very minimum, you should only allow ssh access for root from the LAN, so people can't even attempt to get in as root.

SSH in as your regular user, then su to root, it is many times safer.

Peace,
JimBass
 
  


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
FTP Server: Prevent user from getting out of their root directory Swakoo Linux - General 4 03-02-2007 02:42 AM
Accessing remote Linux server via FTP as root user jbsarma Linux - General 4 11-24-2005 04:33 AM
FTP Users are able to Traverse directories up to the root of my server stingay Red Hat 6 10-25-2003 04:22 AM
Redhat 8 machine on network how do I FTP to web server document root? maxdown Linux - Networking 3 05-05-2003 08:01 PM
Guy got root directory access from my FTP server... how can I fix this? bripage Linux - General 16 10-02-2002 11:12 AM


All times are GMT -5. The time now is 10:21 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration