Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SFTP on Linux

Status
Not open for further replies.

nevets2001uk

IS-IT--Management
Jun 26, 2002
609
GB
I'm trying to help a friend configure a VPS hosted server to allow Secure FTP as they've had some problems with various sites hosted on the server being hacked and suspect FTP is the cause.

I'm very very limited on Linux but have tested SFTP over SSH in filezilla to the server. I can create a connection to the root user but not for any other directory / user on the server. Is there a setting that would need to be changed to enable this?



Steve G (MCSE / MCSA:Messaging)
 
If you have SSH access why not use SCP?


QatQat

--------------------------------------
If I could have sex each time I reboot my server, I would definitely prefer Windoz over Linux!
 
Thanks for the response. I'm not aware of SCP. Is it an easier / better option to look into? Can it be used from a Windows client if need be?

Steve G (MCSE / MCSA:Messaging)
 
It is indeed a better option than SFTP.

syntax is similar to ssh, very very string encryption in the data stream and easy to script as well, because it can run with commands in a non-interactive mode. It also uses ssh public private key approach so definitely it is the way to go.

On windows you can use pscp, part of putty, works the same as scp on linux.

exmaple of use

scp -P 2222 /home/paul/myfile remoteusername@remotehost.domain.com:/home/mary/

this command would move the file /home/paul/myfile from localhost to mary's home directory into remotehost.domain.com, using an alternative port to ssh's standard 22.

if you generate a certificate (using "ssh-keygen -t rsa" command) you can specify it with the "-i" flag

scp -P 2222 -i .ssh/myKey /home/paul/myfile remoteusername@remotehost.domain.com:/home/mary/


This is just to get you started, anyway I suggest you search a bit for reference on the net (there is plenty of) as scp, just like ssh, is very powerful.

One last thing, from windoz you can use a very good graphical application called WinSCP, definitely a must have if you want to move files safely between windoz and linux across the net. WinSCp makes all above explained operations much easier.

QaTQat

--------------------------------------
If I could have sex each time I reboot my server, I would definitely prefer Windoz over Linux!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top