scp issue


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers scp issue
# 1  
Old 09-28-2010
scp issue

I've got an ssh server on each pc in my LAN.
I wanna use scp to copy files, but it doesn't work.
Code:
0;4:59pm% scp mghis@localhost:/home/mghis/foobar mghis@192.168.0.3:/home/mghis/foobar
mghis@192.168.0.3's password: < I type in the remote password >
mar 28 set 2010, 17.00.26, CEST
17:00:26 up 2:13, 3 users, load average: 0.16, 0.31, 0.26
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
lost connection
1;5:00pm% scp foobar mghis@192.168.0.3:/home/mghis/foobar
mghis@192.168.0.3's password: 
mar 28 set 2010, 17.01.00, CEST

The foobar file is not on the remote host!

I'm using Ubuntu Linux 10.4 in both PCs.

thanks for any reply!
# 2  
Old 09-28-2010
I would start by checking why:
ssh remote host, Is all fine?
# 3  
Old 09-28-2010
Excuse me for the non-descriptive title...

Anyway i can ssh to the remote host.
# 4  
Old 09-28-2010
Then next
what UID are you, local, remote?
Could it be your firewall restricting you?
# 5  
Old 09-28-2010
Thank you for your help. I solved.
In my .tcshrc there were lines which prints out the date and some other stuff.
Apparently sftp and scp doesn't like that. Anyway i removed the contents of /etc/motd and modified the ~/.tcshrc and now scp is working fine.

Last edited by mghis; 09-28-2010 at 03:19 PM.. Reason: typo
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Can't solve a simple SSH/scp issue.. Please help.

Disclaimer: I tried searching but wasn't able to get to the answer so please don't flame. Scenario: I have a root script that generates a file on box1 and then needs to scp it over to box2 using user1. Both boxes are running open-ssh. root@locat-host# scp /tmp/file1 user1@box2:/tmp/file1 ... (10 Replies)
Discussion started by: denissi
10 Replies

2. Shell Programming and Scripting

Variable value substitution issue with awk command issue

Hi All, I am using the below script which has awk command, but it is not returing the expected result. can some pls help me to correct the command. The below script sample.ksh should give the result if the value of last 4 digits in the variable NM matches with the variable value DAT. The... (7 Replies)
Discussion started by: G.K.K
7 Replies

3. Shell Programming and Scripting

Issue with scp to whole folder

previously 1 folder was created in a week. but now it creating more than 1 folder. shown as belowfor example:-------------------- 1 Aug A 2 Aug B 8 Aug M. Now i want scp to the whole content for whole folder. Let say in first week having 2 folder which need to scp to remaote in twice... (1 Reply)
Discussion started by: rabindratech
1 Replies

4. Shell Programming and Scripting

scp/untar .tar file in parallel issue

Hi Guys, I am facing a strange issue while doing parallel (using & for background) scp/untar operation from my unix box to multiple unix boxes... I am getting tar : unexpected EOF in archive error the code is as follows.,,, for i in 10 do sh -c "scp <command> ; ssh tar -xf <tar> -C... (4 Replies)
Discussion started by: mihirvora16
4 Replies

5. UNIX for Advanced & Expert Users

scp/untar in parallel issue tar : Unexpected EOF in archive

Hi Guys, I am facing a strange issue while doing parallel (using & for background) scp/untar operation from my unix box to multiple unix boxes... I am getting tar : unexpected EOF in archive error the code is as follows.,,, for i in 10 do sh -c "scp <command> ; ssh tar -xf <tar> -C... (1 Reply)
Discussion started by: mihirvora16
1 Replies

6. Solaris

scp issue

Hi I am trying to copy file from one server to another server. i used : scp filename username\@targerserver:path i got this is error : ssh: servername: node name or service name not known lost connection Please advice on this Thanks, Mani (1 Reply)
Discussion started by: Mani_apr08
1 Replies

7. UNIX for Dummies Questions & Answers

scp issue

hi, after scp from a mac to a unix server and back a set of .wav files (originally generated by ppt with 'record narration') become corrupted somehow, and when opened the sound files has become noise. non-.wav files in the same folder are not affected. strangely, the problem only seems to... (0 Replies)
Discussion started by: halcroves
0 Replies

8. Shell Programming and Scripting

Unix Arithmatic operation issue , datatype issue

Hi, I have a shell scripting. This will take 7 digit number in each line and add 7 digit number with next subsequent lines ( normal addition ). Eg: 0000001 0000220 0001235 0000022 0000023 ........... ......... ........ Like this i am having around 1500000 records. After adding... (23 Replies)
Discussion started by: thambi
23 Replies

9. Shell Programming and Scripting

Reg: SCP issue

Hi , I am beginner in aix... i am using the following command in my shell script to to copy the files from a secured server to my aix box... /usr/local/bin/scp pickme@brad.wanted.com:../internal/mem_grp_details* Should i use sleep command in my shell script for the script to copy the... (15 Replies)
Discussion started by: sam99
15 Replies
Login or Register to Ask a Question