- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- "Permission Denied" when using SSH
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
тАО10-04-2010 06:04 AM
тАО10-04-2010 06:04 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2010 06:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2010 06:10 AM
тАО10-04-2010 06:10 AM
Re: "Permission Denied" when using SSH
Could you give us more information about your issue ?
Do you have an issue when you try to acces to a remote system ? Is it frm a particular user ?
Can you post the result of ssh -v user@system
Regards ,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2010 06:23 AM
тАО10-04-2010 06:23 AM
Re: "Permission Denied" when using SSH
OpenSSH_4.7p1+sftpfilecontrol-v1.2-hpn12v17, OpenSSL 0.9.7m 23 Feb 2007
HP-UX Secure Shell-A.04.70.022, HP-UX Secure Shell version
debug1: Reading configuration data /opt/ssh/etc/ssh_config
debug1: Connecting to camcrd01 [204.89.119.58] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/3
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_5.1p1+sftpfilecontrol-v1.2-hpn13v5
debug1: match: OpenSSH_5.1p1+sftpfilecontrol-v1.2-hpn13v5 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.7p1+sftpfilecontrol-v1.2-hpn12v17
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
The authenticity of host 'camcrd01 (204.89.119.58)' can't be established.
RSA key fingerprint is cd:a5:cd:89:24:e1:eb:fc:4a:a7:7d:0d:9a:3d:9e:6f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'camcrd01 xxx.xxx.xxx.xxx (RSA) to the list of known hosts.
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: /root/.ssh/id_rsa
debug1: Trying private key: /root/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: password
root@camcrd01's password:
debug1: Authentications that can continue: publickey,password,keyboard-interactive
Permission denied, please try again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2010 06:34 AM
тАО10-04-2010 06:34 AM
Re: "Permission Denied" when using SSH
root@camcrd01's password:
debug1: Authentications that can continue: publickey,password,keyboard-interactive
Permission denied, please try again.
Looks like things are working, assuming you have the correct password..
Do you have a "DenyUsers" directive in sshd_config on this server ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2010 06:41 AM
тАО10-04-2010 06:41 AM
Re: "Permission Denied" when using SSH
What about onother user instead of root ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2010 06:41 AM
тАО10-04-2010 06:41 AM
Re: "Permission Denied" when using SSH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2010 07:21 AM
тАО10-04-2010 07:21 AM
Re: "Permission Denied" when using SSH
Connect to the server via telnet.
Check the ownership and permissions of the files in the user home directory.
Look for reasons why the permission is being denied, like some other user owning the files.
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
тАО10-04-2010 07:31 AM
тАО10-04-2010 07:31 AM
Re: "Permission Denied" when using SSH
I've checked the files. This is only happening for the root user. There is an entry for "console" in securetty, but I thought that was for telnet connections.(?) The funny thing is that I can log in as root from telnet - even with that entry in securetty.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2010 07:39 AM
тАО10-04-2010 07:39 AM
Re: "Permission Denied" when using SSH
your sshd_config has a root allow or deny, if it is root getting denied and not other users..
Best practice is to su to root when you need to use root, and default setup for OpenSSH is to disable root login..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2010 07:40 AM
тАО10-04-2010 07:40 AM
Re: "Permission Denied" when using SSH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2010 07:42 AM
тАО10-04-2010 07:42 AM
Re: "Permission Denied" when using SSH
PermitRootLogin yes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2010 07:47 AM
тАО10-04-2010 07:47 AM
Re: "Permission Denied" when using SSH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2010 07:49 AM
тАО10-04-2010 07:49 AM
Re: "Permission Denied" when using SSH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2010 07:55 AM
тАО10-04-2010 07:55 AM
Re: "Permission Denied" when using SSH
If so, you may want to visit the
/.ssh/known_hosts and remove the entry for the problem workstation..
/.ssh/known_hosts is where the key exchange is stored for root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2010 09:40 AM
тАО10-04-2010 09:40 AM
Re: "Permission Denied" when using SSH
It's not allowing it from any workstation or other server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2010 10:39 AM
тАО10-04-2010 10:39 AM
Re: "Permission Denied" when using SSH
You stated that the DenyRootUser is commented out..
when was the last time that sshd was restarted ?
/sbin/init.d/secsh stop
/sbin/init.d/secsh start
One last item..
any relative messages in /var/adm/syslog/syslog ?
(always for get to check the easy stuff)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2010 06:22 AM
тАО10-12-2010 06:22 AM
Re: "Permission Denied" when using SSH
The server was recently rebooted, so sshd was restarted at that time. Here's what shows up in syslog.log when I try to ssh as root.
error: PAM: Authentication failed for root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2010 07:41 AM
тАО10-12-2010 07:41 AM
Re: "Permission Denied" when using SSH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2010 07:45 AM
тАО10-12-2010 07:45 AM
Re: "Permission Denied" when using SSH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2010 07:46 AM
тАО10-12-2010 07:46 AM