LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ssh/sftp/telnet (https://www.linuxquestions.org/questions/linux-newbie-8/ssh-sftp-telnet-125048/)

true_atlantis 12-11-2003 06:38 PM

ssh/sftp/telnet
 
recently, my school disabled the ability to telnet to remote computers in the CS department (which is a 20 minute walk from my house) but ssh and sftp is still working... so, i come to my question... i have to ssh to the computer to run a script with the argument of the file that needs to be submitted, but i first need to copy that file onto the computer. so i first sftp to the computer to copy it, then have to ssh to run the script. my question is, is there an easier way? is there a command in ssh to copy local files to the ssh'ed computer, or is there a way to run a script with sftp??

h/w 12-11-2003 06:54 PM

i do what u do. i open 2 terminals, one with sftp, and other with ssh, together. heh. :)

Nis 12-11-2003 07:18 PM

Use scp. ssh into school machine, 'scp user@homemachine:filetocopy .' This should copy the file from your home machine to the school one.


All times are GMT -5. The time now is 05:00 PM.