- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Can't get system to "find" scp command
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2001 12:09 PM
тАО12-10-2001 12:09 PM
Can't get system to "find" scp command
Here is what I ran:
>userID(server1: /fisc/gnu/bin): /fisc/gnu/bin/scp -p /home/userID/test.txt userID@server2:/home/userID/test.txt
And this is what was returned:
>ksh: scp: not found
lost connection
Any help on why it is not found would be greatly appreciated. Thanks, Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2001 12:14 PM
тАО12-10-2001 12:14 PM
Re: Can't get system to "find" scp command
If that "lost connection" message is showing, thats an error from scp so you are running it, there is some other error. Is that part of the error or something else you included?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2001 12:16 PM
тАО12-10-2001 12:16 PM
Re: Can't get system to "find" scp command
To get more info on what is exactly occuring use the
-v switch for the verbose option.
#scp -v
***
Next, to find out what binary it is using do
#what scp
I think the problem is at the server2 end. The verbose option will catch it.
HTh
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2001 12:18 PM
тАО12-10-2001 12:18 PM
Re: Can't get system to "find" scp command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2001 12:20 PM
тАО12-10-2001 12:20 PM
Re: Can't get system to "find" scp command
If you are using secure shell (ssh ) then you can use scp.
Have a look at this link
http://www.openssh.com/
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2001 12:21 PM
тАО12-10-2001 12:21 PM
Re: Can't get system to "find" scp command
Here is a sample example:
***
#scp2 -v /tmp/taj orv:/home/rmannar/taj
warning: Development-time debugging not compiled in.
warning: To enable, configure with --enable-debug and recompile.
Development-time debugging not compiled in.
To enable, configure with --enable-debug and recompile.
debug: hostname is 'orv'.
debug: Unable to open /home/rman/.ssh2/ssh2_config
Development-time debugging not compiled in.
To enable, configure with --enable-debug and recompile.
debug: connecting to orv...
debug: entering event loop
debug: ssh_client_wrap: creating transport protocol
debug: ssh_client_wrap: creating userauth protocol
debug: ssh_blob_read: file /home/rman/.ssh2/hostkeys/key_22_orv.pub does not exist.
Accepting host orv key without checking.
debug: Host key saved to /home/rman/.ssh2/hostkeys/key_22_orv.pub
debug: host key for orv, accepted by rman Mon Dec 10 15:20:00 2001
debug: Host key found from the database.
rman@orv's password:
debug: Ssh2/ssh2.c:306: client_authenticated
debug: DISPLAY not set; X11 forwarding disabled.
Transfering /tmp/taj -> orv:/home/rman/taj (1k)
|.........................................................................................................................|
168 bytes transferred in 0.06 seconds [2.67 kb/sec].
debug: ssh_pipe_stream_destroy
pega@/usr/local/bin>debug: session_close
debug: destroying client struct...
debug: uninitializing event loop
#
*****
the ssh2 server must be running on the remote system!
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2001 12:30 PM
тАО12-10-2001 12:30 PM
Re: Can't get system to "find" scp command
are you sure the command you are running is the actual scp command and a script using ssh and calling scp in it? The debug looks a little more like the ssh than the scp command (but I just may be on an older version)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2001 12:38 PM
тАО12-10-2001 12:38 PM
Re: Can't get system to "find" scp command
ssh is also in the same directory.
I ran it with verbose as displayed above. RajMan included the above debug example.
I don't know why I keep getting ksh: scp: not found. I am running the commmand with the full path to that scp command.
Thanks again, Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2001 12:51 PM
тАО12-10-2001 12:51 PM
Re: Can't get system to "find" scp command
what's the output of
#what scp ??
Is the directory of scp binary in your PATH ??
-raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2001 12:54 PM
тАО12-10-2001 12:54 PM
Re: Can't get system to "find" scp command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2001 12:59 PM
тАО12-10-2001 12:59 PM
Re: Can't get system to "find" scp command
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2001 12:59 PM
тАО12-10-2001 12:59 PM
Re: Can't get system to "find" scp command
This error is telling you that your remote host cannot find scp, not the host that you are one. I don't know if this was pointed out in previous reply's. 100 Bucks says if you link ../bin/scp to /usr/sbin/scp then your copy will work. Of course that is not the recommended course of action, just a quick test. You will want to make sure that scp is in the path of the remote use.
GL,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2001 01:03 PM
тАО12-10-2001 01:03 PM
Re: Can't get system to "find" scp command
#what scp was...
$ what scp
scp:
Here is my PATH
(swift_fmtc: /home/myuserID): echo $PATH
/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/myuserID/bin:/usr/bin/X11:/sbin:.:/usr/loc
al/bin:/usr/local/etc:/swift1/softw/BSS/bin/AIX:/swft/softw/common/bin/AIX:/usr/sbin
Do I need to the directory of scp binary in my PATH?
Thanks much! Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2001 01:07 PM
тАО12-10-2001 01:07 PM
Re: Can't get system to "find" scp command
Copy scp binary files in your $PATH.
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2001 01:19 PM
тАО12-10-2001 01:19 PM
Re: Can't get system to "find" scp command
#which scp
(and not what).
The point is the location of your scp binary should be in the PATH variable:
so do
echo $PATH and check whether
/fisc/gnu/bin is present,
if not add it:
**
PATH=$PATH:/fisc/gnu/bin
export PATH
**
and then retry the scp command.
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2001 01:42 PM
тАО12-10-2001 01:42 PM
Re: Can't get system to "find" scp command
>echo $PATH
/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/myuserID/bin:/usr/bin/X11:/sbin:.:/usr/loc
al/bin:/usr/local/etc:/fisc/gnu/bin:/swift1/softw/BSS/bin/AIX:/swift1/softw/common/bin/AIX:/usr/sbin
So, now it includes /fisc/gnu/bin and when I run it I get...
>ksh: scp: not found
lost connection
Somewhere, it is not finding the scp command- right? Since it is in my PATH (on both servers), I would think it would find it.
Thank you very much. Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2001 01:47 PM
тАО12-10-2001 01:47 PM
Re: Can't get system to "find" scp command
is ssh working fine??
(leaving aside scp for the moment). Did it work fine before this error?
I am beginning to suspect this could be a ssh installation error.
Another suspect is the ssh version. There are two versions, version1 and version2 and they are incompatible. So, do you have the same version (binaries)
on both the systems?
Can you try ssh and see whether it works?
ssh -v userid@server2
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2001 01:49 PM
тАО12-10-2001 01:49 PM
Re: Can't get system to "find" scp command
John, this is the permissions info on those directories:
drwxr-sr-x 5 root system 512 Nov 28 17:46 fisc
drwxr-sr-x 5 root system 512 Nov 28 17:46 gnu
drwxr-sr-x 2 root system 512 Dec 7 09:59 bin
And here is the info on the scp itself:
-rwxr-xr-x 1 root sys 61362 Nov 28 17:46 scp
I'm not sure what the "s" means in the 7th permission spot of the fisc, gnu and bin directories. Could this not allow me to execute it? If so, would that still give me the "ksh: scp: not found" error?
Thanks so much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2001 01:51 PM
тАО12-10-2001 01:51 PM
Re: Can't get system to "find" scp command
I am able to ssh without any problem. I have ssh'ed from server1 to server2 and visa versa.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2001 01:59 PM
тАО12-10-2001 01:59 PM
Re: Can't get system to "find" scp command
<
The file size seems much lesser than what i have on my system (which uses scp version 2).
The size of the file is:
-r-xr-xr-x 1 root sys 606976 Oct 4 1999 scp2
Other useful info:
#file scp2
scp2: PA-RISC2.0 shared executable dynamically linked -not stripped
#>what /usr/local/bin/scp2
/usr/local/bin/scp2:
HP92453-02A.11.00 HP-UX SYMBOLIC DEBUGGER (END.O ILP32) $Revision: 75.02 $
**
Is the scp file you have
a binary or is it a wrapper which is calling the actual
scp binary??? I am beginning to suspect that is the case.
Run "file" and "what" commands
on the *full* path of the scp binary and check the output.
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2001 02:13 PM
тАО12-10-2001 02:13 PM
Re: Can't get system to "find" scp command
Have you tried my idea of linking the scp to /usr/sbin on your remote host?
I have seen this many times and most of the time that is the root of my problem.
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2001 02:16 PM
тАО12-10-2001 02:16 PM
Re: Can't get system to "find" scp command
I am running ssh-3.0.1 from www.ssh.com. My version of scp2 has: 1214952 Nov 28 15:07 scp2 size.
What version of ssh are you running on the server? If different versions, have you looked for a bug report yet? Or a CHANGES file?
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2001 02:35 PM
тАО12-10-2001 02:35 PM
Re: Can't get system to "find" scp command
ssh -l username hostname "echo $PATH"
you will only get back
/bin /usr/bin /usr/sbin /sbin
That is why you can't find scp.
You will need to recompile with the --with-default-path=/usr/local/bin
or what ever bin dir you are using.
Good Luck,
Craig
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2001 05:06 PM
тАО12-10-2001 05:06 PM
Re: Can't get system to "find" scp command
Have to agree with Craig -- it looks like scp isn't being found on the remote side of your connection. Missed this check in your postings -- did you ascertain that it does, indeed exist on the server? The output from your -v run certainly indicates that everything is working properly up to the point that the scp command is actually passed on to the server:
server1: Enabling compression at level 6.
server1: Sending command: scp -v -f /home/userID/test.jef
server1: Entering interactive session.
ksh: scp: not found
and then you get the "not found" message.
As a quick test, I renamed scp on my server and attempted some such test -- also received the "lost connection" message.
best regards.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2001 08:02 AM
тАО12-11-2001 08:02 AM
Re: Can't get system to "find" scp command
I second the ideas of the path because scp does not process the home dot-files like ssh does. for this reason, you need to link the binaries to common directories, or recompile and add directories in the configure script (the afore mentioned is much easier than the latter!).
The test as mentioned before of echoing the path will tell if it is the problem.
Best regards,
Shannon