- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- OpenSSH scp issue
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
тАО09-29-2008 04:42 AM
тАО09-29-2008 04:42 AM
OpenSSH scp issue
so for instance if box A wants to talk to box B, but there is a firewall in between, we have box C set up to do the transfer via:
scp A:/file B:/file
once we switched to OpenSSH this no longer worked. I thought it was a problem because we have mixed tectia and openssh, but it is broken everywhere...for boxes that have converted to openssh, using the -vvv option I see the error:
debug1: read_passphrase: can't open /dev/tty: No such device or address
Host key verification failed.
lost connection
for boxes that are still running tectia (however our transfer box is openssh) we see:
usage: scp1-compat-srv (-t | -f) [-qQaAprvBCL] [-S path-to-ssh] [-o ssh-options] [-P port] [-c cipher] [-i identity] f1 f2; or: scp1-compat-srv (-t | -f) [options] f1 ... fn directory
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 1.2 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 1
if I try and break it up, it works just fine, for instance:
scp A:/file file
scp file B:/file
this works fine, its just when I try to go to two remote sites at once that it fails.
Thoughts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2008 05:13 AM
тАО09-29-2008 05:13 AM
Re: OpenSSH scp issue
My thoughts is you need to generate new keys and distribute them. Then this configuration should work.
ssh-keygen -t dsa
Permission and all that.
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
тАО09-29-2008 05:19 AM
тАО09-29-2008 05:19 AM
Re: OpenSSH scp issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2008 05:33 AM
тАО09-29-2008 05:33 AM
Re: OpenSSH scp issue
If so, then A needs to connect and auth to B before this will work. You mentioned FW in the way between A and B.
So, you may have to break it up as you mentioned. A to C, then C to B.
Just as a question, if you paid for Tectia then why not use your investment and call them for support ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2008 05:51 AM
тАО09-29-2008 05:51 AM
Re: OpenSSH scp issue
And yes, we do currently have support for Tectia, but it isnt tectia that is broken, but rather once we switched to OpenSSH, we are dropping Tectia because of even more severe security related bugs that they have failed to fix in over a year.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2008 07:09 AM
тАО09-29-2008 07:09 AM
Re: OpenSSH scp issue
Host key verification failed.
lost connection"
ok...it seems that either openssh doesn't recognize the existing keys, or its looking in the wrong place or????
serverC is doing scp a:something to b:something....so as noted earlier, a must be able to login to b, b to a (probably) and c to both a and b. what happens if you ssh from a to b, or vice versa?
I'd suggest, as also noted previously, that you regen / redistribute keys.
Also, did you have an key agent running anywhere supplying passphrases?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2008 08:50 AM
тАО09-29-2008 08:50 AM
Re: OpenSSH scp issue
Your intial post lead me to believe that you wanted an A to C then C to B soltion due to a FW between A and B.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2008 10:30 PM
тАО09-29-2008 10:30 PM
Re: OpenSSH scp issue
I think it will be the right option to generate new keys sent it to all server.
create id_rsa.pub key with ssh-keygen
cat id_rsa.pub >authorized_keys
and sent the authorized_keys file serve b and c /home/user/.ssh/.
then try
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2008 04:39 AM
тАО09-30-2008 04:39 AM
Re: OpenSSH scp issue
Kinda the same as ssh A ssh B, will login to machine A, then ssh to machine B.
scp A:/tmp/david B:/tmp/david requires that B have A's key in ~/.ssh/authorized_keys
host key verification failed - are you using the same key after switching? Otherwise delete (uncomment) the key from the ~/.ssh/known_hosts file. Check host A for host C's key, and host B for host A's key.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2008 07:31 AM
тАО09-30-2008 07:31 AM
Re: OpenSSH scp issue
exactly. thats what is supposed to happen, and is as documented for OpenSSH.
As far as Tectia, perhaps it did copy from A to C and from C on to A (acting as a relay). You would have to refer to the Tectia docs or support to find out.
A cursory review of their site seems to indicate that Tectia has non-standard features that may have created this relay capability, depending on which products are installed / available.