sanctus Posted June 29, 2007 Report Posted June 29, 2007 To have acces to the processors of my university to run simulations I do: ssh -X sandro@myuni The problem is actually not accessing or giving comands to the uni cluster but if I want to save my results on my domain (eg. sandro@localhost) with which comand I can do this? I have to do this via comand line and the usual cp doesn't work... Hope you understood my question which is only hard to formulate but not hard for someone with more experience than me... all I need is one comand line to send things between different domains... Thanks in advanc Quote
Buffy Posted June 29, 2007 Report Posted June 29, 2007 ssh has a companion called "scp" which does what you're looking for. There's also oodles of varieties of "sftp" out there too, depending on whether you're looking for an interactive or batch copy mechanism. Filezilla also has a secure connection mode... Scrambled bits,Buffy Quote
alexander Posted June 29, 2007 Report Posted June 29, 2007 yes scp (secure shell cp) works very well, i also recommend using public key/private key encription tho over the password (more secure) for any SSH transactions :) Quote
sanctus Posted June 30, 2007 Author Report Posted June 30, 2007 thanks to both of you, gonna try it out now. As of security, it is my uni who did this so they'll know what they did (I have a request for a password coming up after the ssh line, if it was that what you meant). Quote
sanctus Posted June 30, 2007 Author Report Posted June 30, 2007 Actually, I'm a bit lost in the sense about what to type. Let's say I want to copy the file show.sm which is on the host sandro@myuni in ~/folder/other/show.smand paste it to sandro@myhost in ~/myfolder/diplome What would be the line I have to write? It doesn't seem to work as cp as here you have also to specify the hosts... Quote
Tormod Posted June 30, 2007 Report Posted June 30, 2007 I think it would be something like scp sandro@myuni:/folder/other/show.sm sandro@myhost:~/myfolder/diplome Type "man scp" to get the help page for scp. Edit: AFAIK this will only work if the host you're moving TO supports SSH... Quote
alexander Posted July 3, 2007 Report Posted July 3, 2007 no no its like thisscp (-r for recursive or other options) /fodler/some_other_folder/file_or_folder someone@somewhere:~/myfolder/some_other_folder Quote
alexander Posted July 3, 2007 Report Posted July 3, 2007 or if you need to copy from one remote host to another: scp name@remote_host_one:/some_dir/some_file_or_dir . (or filename or something) scp remote_dir_copy name@remote_host_two:~/. Quote
sanctus Posted July 4, 2007 Author Report Posted July 4, 2007 Thanks, eventually I contacted my prof and I had to copy while being on myhost and not on myuni (because sandro@localdomain is not recognized by myuni) then I typed:scp sandro@myuni:montecarlo/cmbeasy1/file /home/sandro/Desktop/and it worked fine.The prof told me too that one needs to use /* instead of * if I want to copy file1, file2, file3,... i.e. write file/* , why is this? IT worked fine like that but still seems strange... Quote
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.