Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-11-2003, 06:38 PM   #1
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Rep: Reputation: 30

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??
Old 12-11-2003, 06:54 PM   #2
Senior Member
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 46
i do what u do. i open 2 terminals, one with sftp, and other with ssh, together. heh.
Old 12-11-2003, 07:18 PM   #3
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SFTP and SSH XaViaR Linux - Security 5 07-20-2005 10:18 AM
Ssh/sftp Disconnection basbosco Linux - Security 1 03-12-2004 01:49 PM
SSH - where are scp and sftp satimis Linux - Networking 2 11-15-2003 10:27 AM
sftp and ssh-keygen help please grayhost Linux - Newbie 2 06-26-2003 05:51 PM
ssh and sftp help Rex_chaos Linux - Networking 8 03-17-2003 08:12 PM

All times are GMT -5. The time now is 12:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration