scp command and no response


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting scp command and no response
# 1  
Old 11-27-2009
scp command and no response

I should trasfer some files by xxx.xxx.xxx.xxx to local host.
In order to check the function works i tried to transfer a single file and I typed:
Code:
scp -P 21 username@xxx.xxx.xxx.xxx:/filename.nas /filename.nas

At this point i haven't response anch i have to type CTRL+C to return to console.

Can you help me?

Last edited by zaxxon; 11-27-2009 at 10:51 AM.. Reason: code tags please
# 2  
Old 11-27-2009
Add the -v option to display debug informations
Code:
scp -v -P 21 username@xxx.xxx.xxx.xxx:/filename.nas /filename.nas

Jean-Pierre.
# 3  
Old 11-27-2009
Code:
au3v3 # scp -v -P 21 username@xxx.xxx.xxx.xxx:/filename.nas /config.nas
Executing: program /usr/bin/ssh host xxx.xxx.xxx.xxx, user username, command scp -v -f /filename.nas
Sun_SSH_1.1, SSH protocols 1.5/2.0, OpenSSL 0x0090704f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: ssh_connect: needpriv 0
debug1: Connecting to xxx.xxx.xxx.xxx[xxx.xxx.xxx.xxx] port 21.
debug1: Connection established.
debug1: identity file /.ssh/identity type -1
debug1: identity file /.ssh/id_rsa type -1
debug1: identity file /.ssh/id_dsa type -1
debug1: ssh_exchange_identification: 220 MiniFTP Service Ready


Last edited by andreac81; 11-27-2009 at 11:33 AM.. Reason: code tags please
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Vi / vim - Insert a external command response

I would like to execute and external command and insert it into a particular area of the file I am editing. Note that I have the ORIGINAL AT&T vi training doc dated 1987. Doesnt explain it. As an example, in a vi editor I have I would like the result : After executing the following... (1 Reply)
Discussion started by: popeye
1 Replies

2. Red Hat

scp Command

I need a scp command that will connect remote server and find current date & last three days log files and bring them to local machine..Remote server is AIX and local machine is RHEL 6.3. I write below but its not working scp / @IP:/logs/ '{find . -mtime -2 -name "*.LOG"}' (5 Replies)
Discussion started by: micle
5 Replies

3. UNIX for Dummies Questions & Answers

help with scp command

Can someone please help me with what is wrong with this command? scp oracle@hrkpd124:/u01/app/oracle/rdbms/admin/dpoo.html root@hrkpmgmt:/export my intention is to copy the file dopp.html from the server hrkpd124 to the server hrkpmgmt but i am getting the error... (3 Replies)
Discussion started by: dollypee
3 Replies

4. Shell Programming and Scripting

WGET command retrying to get response

Hi , Iam using " WGET " command to hit the URL,i.e. servlet url. I can trigger the servlet using wget but when servlet is not responding this command retries automatically until it get the positive response from the server. So this script is running for more than 8 hrs to get the positive... (2 Replies)
Discussion started by: vinothsekark
2 Replies

5. Shell Programming and Scripting

How to skip command if it is hanging while waiting for response

Hello, I have a script that contains the command "whois 1.2.3.4" Sometimes this command takes far too long to produce any output and as a result the rest of the script is not executed. Can anyone suggest a method so that if no output is produced after say 2 seconds the script skips that... (2 Replies)
Discussion started by: colinireland
2 Replies

6. UNIX Desktop Questions & Answers

scp command

if i use scp command to copy a file from one server another server it is asking password of the server from where the file being copied. i am automating some reports.. i need the file to be copied without asking the password. can any help me out??? thanks in advance, Arun Manas (1 Reply)
Discussion started by: arunmanas
1 Replies

7. Shell Programming and Scripting

Setting array equal to command response

normally when i type: condor_q | tail -1 command line returns: 0 jobs; 0 idle, 0 running, 0 held I want use the number in front of 'running' in a series of equality tests to submit more jobs when my queue gets low. Someone showed me how to do it a few days ago by setting an array equal to... (4 Replies)
Discussion started by: pattywac
4 Replies

8. UNIX for Dummies Questions & Answers

'less' command response is garbled

Helo , I m using RHEL 4. If I run 'ls -laF | more', response is properly display. but when I run If I run 'ls -laF | less', the response is garbled what to do to remove this? Regards, Amit (4 Replies)
Discussion started by: amitpansuria
4 Replies

9. UNIX for Dummies Questions & Answers

SCP command

Hello, Let's say I have the command line: scp -r /home/Mohit/Switches mkakkar@softmon:/home/mkakkar/ If I put a "/" after the Switches such that I get: scp -r /home/Mohit/Switches/ mkakkar@softmon:/home/mkakkar/ How does the behaviour change? (1 Reply)
Discussion started by: mojoman
1 Replies

10. UNIX for Dummies Questions & Answers

help on SCP command

Total unix newbie needs help:Need to SCP files to a WINDOWS NT server,but giving me some problems: REPOSITORY=/usr/psoft/fs600srv/reports/HR /usr/local/bin/scp -p -a $REPOSITORY/HR.glpccd*.unl Administrator@10.84.124.6:/Temp When I execute the script, it is giving me this error. ... (3 Replies)
Discussion started by: starla0316
3 Replies
Login or Register to Ask a Question