LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   FTP Server On Root? (http://www.linuxquestions.org/questions/linux-server-73/ftp-server-on-root-537146/)

jtatarin 03-13-2007 03:03 PM

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?

ilikejam 03-13-2007 04:57 PM

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

jtatarin 03-13-2007 05:24 PM

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?

ilikejam 03-13-2007 05:29 PM

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

jtatarin 03-13-2007 08:20 PM

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

JimBass 03-14-2007 12:32 PM

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


All times are GMT -5. The time now is 12:39 AM.