JeroenM Posted October 28, 2002 Report Share Posted October 28, 2002 Hi I have this problem: my girlfriend checks her mail through ssh on a Mandrake PC. She uses mutt for this. So attachments can't be seen through the ssh. How can I get her to transfer the attachments onto the PC where she is sitting (Mandrake as well)? thanks Jeroen Quote Link to comment Share on other sites More sharing options...
tyme Posted October 28, 2002 Report Share Posted October 28, 2002 only way i know to do this is using an ftp or sftp session.... i don't think ssh alone can transfer files. Quote Link to comment Share on other sites More sharing options...
JeroenM Posted October 28, 2002 Author Report Share Posted October 28, 2002 doesn't ftp need one of the 2 PCs to be a file server or something like that? Quote Link to comment Share on other sites More sharing options...
Ronin Posted October 28, 2002 Report Share Posted October 28, 2002 only way i know to do this is using an ftp or sftp session.... i don't think ssh alone can transfer files. ssh if I understand it correctly can transfer files, I think its scp filename destination. But it's been a while since I've done it. :wink: Quote Link to comment Share on other sites More sharing options...
fuzzylizard Posted October 28, 2002 Report Share Posted October 28, 2002 I did a little looking on google and it seems that you are right - scp will copy files between computers using ssh. However, this is not a simple process and involves creating enryption keys and the such. From a cursory look, it is an involved process for each and every file that needs to be transfered. The easiest ways of transfering files is using sftp. Setting up a server would at least only be an involved process once. Cooool, I'm not a N00bie anymore. Quote Link to comment Share on other sites More sharing options...
qeldroma Posted October 29, 2002 Report Share Posted October 29, 2002 scp works. Just take the manual. Sorry, but it is as easy as this post is short :) Quote Link to comment Share on other sites More sharing options...
Ronin Posted October 29, 2002 Report Share Posted October 29, 2002 I did a little looking on google and it seems that you are right - scp will copy files between computers using ssh. However, this is not a simple process and involves creating enryption keys and the such. From a cursory look, it is an involved process for each and every file that needs to be transfered. The easiest ways of transfering files is using sftp. Setting up a server would at least only be an involved process once. Cooool, I'm not a N00bie anymore. Keys?? We don't need no stinking keys.. Ok seriously when I scp from this box to another the only keys created were the ssh ones which happened automatically. Once that was done it was a simple matter of scp file and where. Much easier then setting up an ftp Quote Link to comment Share on other sites More sharing options...
fuzzylizard Posted October 29, 2002 Report Share Posted October 29, 2002 scp works. Just take the manual. Sorry, but it is as easy as this post is short :) Okay, so if I am sitting on a windows machine using ssh to access a linux box, exactly how do I go about transfering a file from the remote machine onto my windows machine? Sorry, but I am a little lost on how to do this. (And yes, I am looking at the man page.) Quote Link to comment Share on other sites More sharing options...
qeldroma Posted October 29, 2002 Report Share Posted October 29, 2002 Sorry, didn't fidle out that "windoz" thing. I am searching in the moment for that, you have to access via samba, i think. There's no flag in putty, that helps you transfering, isn't? Quote Link to comment Share on other sites More sharing options...
fuzzylizard Posted October 29, 2002 Report Share Posted October 29, 2002 Okay, so let's make this simpler - how do you do this using linux? I am sitting at my computer - Red Hat 7.3 - and pop open a console and ssh to a remote computer, how do I transfer a file using scp? Or does it only work on a local network? From reading the man pages I got the idea that it was for a local network, but I have been wrong before. Quote Link to comment Share on other sites More sharing options...
Guest itti Posted October 29, 2002 Report Share Posted October 29, 2002 it works over every ssh connection. i know this because we´re accessing our webserver at office via scp... there is a ftp like client tool for windows called winscp somewhere. Quote Link to comment Share on other sites More sharing options...
JeroenM Posted October 29, 2002 Author Report Share Posted October 29, 2002 scp works. Just take the manual. Sorry, but it is as easy as this post is short :) Hmm in that case my intelligence is as low as your post was short. ;-) first I ssh to the box, give the password to get in. ls to find the file scp and now what? scp filename ip-adresOfTheBoxImAt:filename ??? doesn't work. Quote Link to comment Share on other sites More sharing options...
cardassianscot Posted October 30, 2002 Report Share Posted October 30, 2002 The easiest way is to use sftp. If you can already access your computer by ssh then there is no more configuration needed. sftp uses the same connection arguments as ssh. Once in you are given the usual ftp command line. get file copies file from the remote host to the local machine and put file copies file from the local machine to the remote machine Quote Link to comment Share on other sites More sharing options...
fuzzylizard Posted October 30, 2002 Report Share Posted October 30, 2002 sftp uses the same connection arguments as ssh. So, you do not need to set up a special ftp server in order to use sftp if ssh is already running on the machine? All you need to do is setup ssh and you have access to both ssh and sftp? Is this what you are saying? Just trying to clarify what I think you are saying. Quote Link to comment Share on other sites More sharing options...
cardassianscot Posted October 30, 2002 Report Share Posted October 30, 2002 So, you do not need to set up a special ftp server in order to use sftp if ssh is already running on the machine? All you need to do is setup ssh and you have access to both ssh and sftp? Yes. That's what I'm saying. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.