LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 01-04-2005, 06:20 PM   #1
DAChristen29
Member
 
Registered: Dec 2002
Location: Johnstown, Co
Distribution: Mint (debian edition)
Posts: 541

Rep: Reputation: 30
ssh and scp problem


i can ssh into a remote machine i have downstairs, but when im logged in, i cant scp a file from that machine back onto this machine (the oneim ssh-ing from)

this is my process:




dave@DAC1138:$ ssh knoppix@192.168.1.101
Password:
Linux Knoppix 2.4.5 #13 SMP Thu May 31 15:38:30 CEST 2001 i686 unknown

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

knoppix@0[~]$ cd /tmp
knoppix@0[tmp]$ scp 0001.png dave@192.168.1.100:/home/dave
dave@192.168.1.100's password:
You are working as dave
knoppix@0[tmp]$





dave is the computer im ssh-ing from (the host machine). knoppix is the remote machine i ssh into. im trying to get a file from knoppix back onto dave, but as you can see, it just plops me back at a prompt, without copying the files. oh, and sshd is started on both machines.
 
Old 01-04-2005, 06:37 PM   #2
amfoster
Member
 
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

Rep: Reputation: 34
why the dave@ part?

scp filename host:/destination
or stay on the upstairs machine and

scp downstairs:/tmp/0001.png .



or try sftp
 
Old 01-04-2005, 06:48 PM   #3
DAChristen29
Member
 
Registered: Dec 2002
Location: Johnstown, Co
Distribution: Mint (debian edition)
Posts: 541

Original Poster
Rep: Reputation: 30
the dave part because thats the user that im connecting as.

i do scp the file from here. the deal it i have 2 machines downstairs i render my images and videos on, so instead of wasting this cpu time rendering, i send them downstairs, ssh into the machines, render them, then *TRY* to scp the output file(s) back to this machine. im stuck on the scp the files back to this machine part.

i tried sftp, like this:

knoppix@0[tmp]$ sftp dave@192.168.1.100:/home/dave 0001.png
Connecting to 192.168.1.100...
dave@192.168.1.100's password:
Received message too long 458960945

still not working.

Last edited by DAChristen29; 01-04-2005 at 06:50 PM.
 
Old 01-04-2005, 07:11 PM   #4
amfoster
Member
 
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

Rep: Reputation: 34
I have somewhat the same situation here, although I made the ssh part passwordless.

I either

scp usernam@box1:/tmp/myfile .

or I
sftp username@box1
cd /tmp
lcd /home/myusername
get file
or mget files*
bye

or I use rsync to sync the entire directory to the machine here.

rsync -ave ssh box1:/mydir/ /mylocaldir/
 
Old 01-05-2005, 05:27 PM   #5
DAChristen29
Member
 
Registered: Dec 2002
Location: Johnstown, Co
Distribution: Mint (debian edition)
Posts: 541

Original Poster
Rep: Reputation: 30
it seems like something on the cluster knoppix distro i have installed on the machine downstairs. like a setting forbids uploads via scp, but only allows downloads.
 
  


Reply


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
Problems with SSH / SCP henriette Linux - Networking 1 04-28-2004 02:52 AM
Ssh/scp Gui MattLaw Linux - Networking 2 02-18-2004 05:45 PM
difference between SSH and SCP palanisaravanan Linux - Security 8 12-29-2003 12:07 AM
ssh scp problem ckupris Linux - Networking 6 10-11-2003 06:17 PM
sshd, ssh, scp, help Stimm Linux - Security 3 03-25-2001 06:17 PM


All times are GMT -5. The time now is 08:52 PM.

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