- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ssh rcp problem
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
09-01-2005 06:06 AM
09-01-2005 06:06 AM
ssh rcp problem
When i issue the following rcp:
$rcp file.dat TKillinger@icgnode.veriz.com:/tkillinger/tmp.tmp
I get:
TKillinger@icgnode.veriz.com's password:
/usr/bin/sh: No such file or directory
scp: warning: child process (/opt/ssh2/bin/ssh2) exited with code 0.
I have 3 other hosts configured with the same 11.11 installation that work fine.
Thanks in advance!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2005 06:10 AM
09-01-2005 06:10 AM
Re: ssh rcp problem
Do you have the /tkillinger directory created on icgnode.veriz.com?
Enjoy :)
Pedro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2005 06:13 AM
09-01-2005 06:13 AM
Re: ssh rcp problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2005 06:20 AM
09-01-2005 06:20 AM
Re: ssh rcp problem
Try to refer to file.dat with absolut path:
$rcp /path_to_file.dat/file.dat TKillinger@icgnode.veriz.com:/tkillinger/tmp.tmp
Enjoy :)
Pedro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2005 06:21 AM
09-01-2005 06:21 AM
Re: ssh rcp problem
Does that work?? also user name is more than 8 chars.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2005 07:22 AM
09-01-2005 07:22 AM
Re: ssh rcp problem
RAC, the results to the remsh are :
remshd: Login incorrect.
And I've carfull verify that I'm using a valid username on that node.
I'm not acually using TKillinger - the names were changed to protect the innocent:)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2005 07:27 AM
09-01-2005 07:27 AM
Re: ssh rcp problem
1. Plain telnet to other system.
2. Key in user_name and password.
3. Once logged on, do who -um
What is in the last coloumn of above command?? The same name/ip_address need to go in .rhosts file in home dir. something as follows.
source_host/ip_Address "user_name"
Is that the case with you??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2005 04:56 PM
09-01-2005 04:56 PM
Re: ssh rcp problem
Check $HOME/.rhosts permission is set properly.
You can do the same through scp also , if SSH is installed and sshd is running, and ssh-keygen is set. That can be done without password , like rcp and better than rcp.
$ scp file.dat icgnode.veriz.com:/tkillinger/tmp.tmp
Cheers ,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2005 12:38 AM
09-02-2005 12:38 AM
Re: ssh rcp problem
I think there's a layer of misdirection here that previous posters may have glossed over. You issue an rcp command but get an error from scp. That tells me that someone has removed the original rcp and linked it to scp.
Just to prevent confusion, I'd suggest using scp directly.
Try issuing a couple of ssh commands to the remote system to verify ssh functionality:
ssh -l TKillinger icgnode.veriz.com ls -ld /tmp
ssh -l TKillinger icgnode.veriz.com ls -ld /tkillinger
ssh -l TKillinger icgnode.veriz.com ls -ld /tkillinger/tmp.tmp
If the first one errors out, you have an issue with your ssh connectivity that needs to be addressed before continuing.
If any of the second two fail, it means your target directory doesn't exist so you won't b e able to copy a file to it.
Assuming all three of those work, it's time to verify the host. You mentioned you have three other hosts on which this command works. Verify via nslookup that there are no discrepancies between the name resolution for icgnode.veriz.com between those three hosts and the one on which you're having problems.
If all that's correct, then try the scp command with a couple of -v-v options and post the results. Hopefully, that'll give you and/or us some more information to examine.
HTH;
Doug O'Leary
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2005 09:01 AM
09-02-2005 09:01 AM
Re: ssh rcp problem
/usr/bin/sh: No such file or directory
If the source file or destination file doesn't exist, I get this:
Pine3 ## scp setup bobv@pine3:/cxcxcc/t.t
Password:
scp: /cxcxcc/t.t: No such file or directory
or
Pine3 ## scp xsetup bobv@pine3:/cxcxcc/t.t
Password:
xsetup: No such file or directory
I would presume that it can't really be that '/usr/bin/sh' doesn't exist.
In fact, if user shell doesn't exist, I just keep getting password request:
Pine3 ## scp setup bobv@pine3:/cxcxcc/t.t
Password:
Password:
Password:
or, if it has perm problem:
Pine3 ## scp setup bobv@pine3:/cxcxcc/t.t
Password:
/usr/bin/shxx: Permission denied
lost connection
bv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2005 03:32 PM
09-04-2005 03:32 PM