Hi Chris Please let me know how to pull all those information out, like debug logs,output logs. Here is what ssh -v gives to me -- I logged in on linux server ls1238p using my id kanand99 and from there I am trying to ssh on cgysnap29503 server using s_tibco user id.
******************************************************************************** kanand99@tibdev03's password: Last login: Thu Aug 15 23:33:03 2013 from cgyvw22241.cenovus.com 101 ls1238p.encana.com:/home/kanand99 % ssh -v s_tibco@cgysnap29503 OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Applying options for * debug1: Connecting to cgysnap29503 [162.139.1.236] port 22. debug1: Connection established. debug1: identity file /home/kanand99/.ssh/id_rsa type -1 debug1: identity file /home/kanand99/.ssh/id_dsa type -1 debug1: loaded 2 keys debug1: Remote protocol version 2.0, remote software version OpenSSH_6.2 debug1: match: OpenSSH_6.2 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_4.3 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-ctr hmac-md5 none debug1: kex: client->server aes128-ctr 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 'cgysnap29503' is known and matches the RSA host key. debug1: Found key in /home/kanand99/.ssh/known_hosts:6 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: Trying private key: /home/kanand99/.ssh/id_rsa debug1: Trying private key: /home/kanand99/.ssh/id_dsa debug1: Next authentication method: password s_tibco@cgysnap29503's password: debug1: Authentication succeeded (password). debug1: channel 0: new [client-session] debug1: Entering interactive session. Last login: Fri Aug 16 01:23:17 2013 from 142.56.94.46 /bin/bash: Operation not permitted debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 debug1: channel 0: free: client-session, nchannels 1 Connection to cgysnap29503 closed. debug1: Transferred: stdin 0, stdout 0, stderr 36 bytes in 0.3 seconds debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 123.1 debug1: Exit status 1 102 ls1238p.encana.com:/home/kanand99 % Thanks & Regards Kuldip Anand HP Enterprise Service kuldip.an...@hp.com --- Application Analyst Cenovus - FINANCE-SPPM IT SOLNS Phone (587)-952-5741 email: kuldip.an...@cenovus.com -----Original Message----- From: Chris Down [mailto:ch...@chrisdown.name] Sent: Friday, August 16, 2013 9:00 AM To: Anand, Kuldip Cc: 'bug-bash@gnu.org' Subject: Re: bash error On 2013-08-16 06:07, Anand, Kuldip wrote: > I have installed cygwin in windows 2008 R2(cgysnap29503) server and when I am > trying to ssh using s_tibco account I am getting error :-- > > 104 ls1238p.encana.com:/home/kanand99 % ssh > s_tibco@cgysnap29503<mailto:s_tibco@cgysnap29503> > s_tibco@cgysnap29503's<mailto:s_tibco@cgysnap29503's> password: > Last login: Thu Aug 15 23:39:56 2013 from 142.56.94.46 > /bin/bash: Operation not permitted > Connection to cgysnap29503 closed. This is nowhere near enough information to debug with. There's no debug output, no logs, no bash trace output. This is probably a complaint from bash about something in your startup files, but how are we supposed to know? You've provided precisely nothing at all about your environment or what you have already tried. This email communication and any files transmitted with it may contain confidential and or proprietary information and is provided for the use of the intended recipient only. Any review, retransmission or dissemination of this information by anyone other than the intended recipient is prohibited. If you receive this email in error, please contact the sender and delete this communication and any copies immediately. Thank you. http://www.cenovus.com