- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SSH/SCP problem in HP-UX 11.23 PA
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
08-14-2007 11:25 PM
08-14-2007 11:25 PM
SSH/SCP problem in HP-UX 11.23 PA
OpenSSH_4.3p2-hpn, OpenSSL 0.9.7i 14 Oct 2005
HP-UX Secure Shell-A.04.30.007, HP-UX Secure Shell version
I can able to SSH to this box.
But "ssh
"scp
But all i can say is, i am using bash shell, i don't use /bin/sh .
with /bin/sh, there is no problem.
The problem is because of using bash shell.
i have installed bash shell which is given by HP itself .
Anyone tell me , what step i have to take with bash shell so that this problem own't appear ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2007 11:36 PM
08-14-2007 11:36 PM
Re: SSH/SCP problem in HP-UX 11.23 PA
You have identified the problem yourself.
You are using the bash shell. By default, when you ssh to another server the environment is limited. Therefore you ssh command will provably provide output if you provide the command as follows:
ssh
Clearly HP's ssh/scp implementation was not designed to work with the bash shell.
If you however provide environment, either by building it into a script or changing the .bashrc or .bash_profile you may get it to work anyway.
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
08-14-2007 11:36 PM
08-14-2007 11:36 PM
Re: SSH/SCP problem in HP-UX 11.23 PA
You have identified the problem yourself.
You are using the bash shell. By default, when you ssh to another server the environment is limited. Therefore you ssh command will provably provide output if you provide the command as follows:
ssh
Clearly HP's ssh/scp implementation was not designed to work with the bash shell.
If you however provide environment, either by building it into a script or changing the .bashrc or .bash_profile you may get it to work anyway. I'd look 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
08-14-2007 11:39 PM
08-14-2007 11:39 PM
Re: SSH/SCP problem in HP-UX 11.23 PA
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1140782
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2007 11:46 PM
08-14-2007 11:46 PM
Re: SSH/SCP problem in HP-UX 11.23 PA
Dennis Handly, the URL that you have given, i am not finding any help in that.
I can't live without bash shell. Without bash shell, i can't work with any Unix/Linux box.
Please anyone tell me, how to solve this issue ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2007 11:52 PM
08-14-2007 11:52 PM
Re: SSH/SCP problem in HP-UX 11.23 PA
Could you add the -v option for dubbuging?
scp -v
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2007 11:55 PM
08-14-2007 11:55 PM
Re: SSH/SCP problem in HP-UX 11.23 PA
#scp -v .ssh/id_rsa.pub
Executing: program /opt/ssh/bin/ssh host cayman, user (unspecified), command scp -v -t .ssh/id_rsa.pub.charger
OpenSSH_4.3p2-hpn, OpenSSL 0.9.7i 14 Oct 2005
HP-UX Secure Shell-A.04.30.007, HP-UX Secure Shell version
debug1: Reading configuration data /opt/ssh/etc/ssh_config
debug1: Connecting to cayman [15.70.188.186] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/3
debug1: identity file /.ssh/id_rsa type 1
debug1: identity file /.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3p2-hpn
debug1: match: OpenSSH_4.3p2-hpn pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3p2-hpn
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'cayman' is known and matches the RSA host key.
debug1: Found key in /.ssh/known_hosts:3
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering public key: /.ssh/id_rsa
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Trying private key: /.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
Password:
debug1: Authentication succeeded (keyboard-interactive).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending command: scp -v -t .ssh/id_rsa.pub.charger
debug1: client_input_channel_req: channel 0 rtype exit-signal reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.4 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status -1
lost connection
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2007 11:59 PM
08-14-2007 11:59 PM
Re: SSH/SCP problem in HP-UX 11.23 PA
I feel the same way about ksh/sh. :-)
I suppose you could change your login shell to a real shell, sh, then invoke bash to do your work.
I assume your problem isn't as simple as not having bash in /etc/shells?? shells(4)
Are there some machines where scp works? Can you use scp to your own machine?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2007 12:03 AM
08-15-2007 12:03 AM
Re: SSH/SCP problem in HP-UX 11.23 PA
(2)scp from HP-Ux to Linux works
(3)scp from HP-Ux to HP-Ux don't work.