Using PuTTY commandline for downloading file through SSH

command linessh

I am investigating various options for writing a program that can automate download of files on a SSH server. I need it to automatically log in, navigate to different directories and download all files from there.

However, upon further thinking, it seems to me it may be easier to use PuTTY commandline to download all files from various folders to my own Windows computer.

I currently have a root account which I don't really want. (I am afraid something can go wrong, and I will be to blame.) Could I ask the server administrator to provide me with a limited account only with read privilege – and only to those directories? Would PuTTY still work or does it require something special on the SSH server to work? If so, that would be #1 way for me to solve my client's problem.

Best Answer

WinSCP is a good client for file transfer over SSH, and can work from windows cli or gui.

as for rights, no you don't need root to ssh, and if they reduce your privileges but grant you the required permissions on the files you need, that should work just fine for you. personally I don't allow root login via ssh, but I don't tend to run distros that enable a root account by default.

Related Question