- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: sftp problem at hp server
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
Forums
Discussions
Discussions
Discussions
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
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
02-10-2004 06:24 AM
02-10-2004 06:24 AM
sh: scp: not found.
ssh problemserver which scp
no scp in $prefix/bin $prefix/sbin /sbin /usr/sbin /usr/bin
problemserver:root:/# which scp
/usr/local/bin/scp
ssh problemserver echo $PATH
/usr/local/bin is not in the path, and the paths are different from the one seen in the error message.
problemserver:root:/# echo $PATH
/usr/local/bin is in the path, and the paths are different from the one in the error message and from the remote echo $path result.
Using scp at the problemserver as a client is fine.
Jun Z
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2004 06:30 AM
02-10-2004 06:30 AM
Re: sftp problem at hp server
That is not a standard installation location.
This looks very much like an environment variable issue.
Keep looking at the $PATH variable.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2004 06:31 AM
02-10-2004 06:31 AM
Re: sftp problem at hp server
scp problemsever:/etc/hosts /tmp
^
The system on which you are executing 'scp' doesn't seem to have it in it's path. I meant client not the problemserver. All problemserver does is to respond with it's sshd daemon. Instead of doing 'ssh problemserver which scp' do
which scp
This will show scp on the local system. If it doesn't show, then either you have to fix the path or the local system (not the problemserver) doesn't have it installed.
Try
/usr/local/bin/scp problemserver:/etc/hosts /tmp
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2004 04:19 AM
02-11-2004 04:19 AM
Re: sftp problem at hp server
problemserver:> which scp
/usr/local/bin/scp
client:> ssh problemserver which scp
not found
as in my original question (root user is all that involved).
Jun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2004 04:41 AM
02-11-2004 04:41 AM
Solutionssh is compiled with a default path ( a compiler option). If you run which remotely, only that path will be used. If /usr/local/bin is not part of that path then your 'ssh problemserver which scp' will not return anything.
Once you login to the problemserver, the session will inherit the PATH set in the system by /etc/PATH,/etc/profile and your .profile. So 'which scp' will show you the result.
So, I run 'ssh otherserver which ssh', I get the following
/opt/openssh2/bin/ssh
I have "/usr/bin /bin /usr/sbin /sbin /opt/openssh2/bin" in my sshd's default path. So, I got the response back.
ssh otherserver which gzip
no gzip in /usr/bin /bin /usr/sbin /sbin /opt/openssh2/bin
Since /usr/contrib/bin is not in sshd's default path, I got the error.
-Sri