Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't get system to "find" scp command

Status
Not open for further replies.

jeff12345

Programmer
Dec 10, 2001
1
US
Hello, I am trying to run scp (secure copy) command. I keep getting "ksh: scp: not found" error. I get this even when I run the command from the directory that it is in. I also get it when my command includes the full path to the scp command. Any help would be greatly appreciated. Thanks, Jeff

Here is what I ran:
>userID(server1: /fisc/gnu/bin): /fisc/gnu/bin/scp -v userID@server2:/home/userID/test.txt /home/userID

And here is what was returned:

>Executing: host server2, user userID, command scp -v -f /home/userID/test.jef
SSH Version 1.2.26 [rs6000-ibm-aix4.2.1.0], protocol version 1.5.
Standard version. Does not use RSAREF.
server1: Reading configuration data /etc/ssh_config
server1: Applying options for *
server1: ssh_connect: getuid userID geteuid userID anon 1
server1: Connecting to server2 [192.168.7.10] port 22.
server1: Connection established.
server1: Remote protocol version 1.5, remote software version 1.2.26
server1: Waiting for server public key.
server1: Received server public key (1152 bits) and host key (1024 bits).
server1: Host 'server2' is known and matches the host key.
server1: Initializing random; seed file /home/userID/.ssh/random_seed
server1: Encryption type: blowfish
server1: Sent encrypted session key.
server1: Installing crc compensation attack detector.
server1: Received encrypted confirmation.
server1: Connection to authentication agent opened.
server1: Trying RSA authentication via agent with 'userID@server1'
server1: Received RSA challenge from server.
server1: Sending response to RSA challenge.
server1: Remote: RSA authentication accepted.
server1: RSA authentication accepted by server.
server1: Requesting compression at level 6.
server1: Enabling compression at level 6.
server1: Sending command: scp -v -f /home/userID/test.jef
server1: Entering interactive session.
ksh: scp: not found
server1: Transferred: stdin 1, stdout 21, stderr 0 bytes in 0.1 seconds
server1: Bytes per second: stdin 6.8, stdout 143.3, stderr 0.0
server1: Exit status 127
server1: compress outgoing: raw data 44, compressed 52, factor 1.18
server1: compress incoming: raw data 31, compressed 36, factor 1.16

userID(server1: /fisc/gnu/bin):


Thanks for any help! Jeff
 
It looks like scp either doesn't exist on server2 or your PATH on server2 needs to include its directory. Connect with an interactive ssh session to server2 to confirm. A "which scp" will probably report none found. If so, edit your .profile to include scp's directory in your PATH and all should be well. Rod Knowlton
IBM Certified Specialist - AIX V4.3 System Administration

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top