LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ssh and scp problem (https://www.linuxquestions.org/questions/linux-networking-3/ssh-and-scp-problem-273888/)

DAChristen29 01-04-2005 05:20 PM

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.

amfoster 01-04-2005 05:37 PM

why the dave@ part?

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

scp downstairs:/tmp/0001.png .



or try sftp

DAChristen29 01-04-2005 05:48 PM

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.

amfoster 01-04-2005 06:11 PM

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/

DAChristen29 01-05-2005 04:27 PM

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.


All times are GMT -5. The time now is 01:03 AM.