I have ssh root access at a server and I need to download, then upload a file to it.
I use putty on my local machine, connect and can do anything. But I don't know how to download the file :). I know that a way would be to set a ftp account but I don't want to do that just for a file.
You can use SSH to send and receive files. This is referred to as SFTP. You just need to download an SFTP client, and you would then use the same connection credentials you use for SSH. A good one is WinSCP.
I do this using scp.
To copy the file "foobar.txt" from the remote host to local machine:
To copy the file "foobar.txt" from the local machine to the remote host:
Since you're using PuTTy (I assume from Windows), there is an included scp utility with similar syntax (pscp.exe). From a command prompt, cd to C:\Program Files\PuTTY and run:
WinSCP for Windows perhaps? Or as previous poster said scp/pscp.