Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ssh root denied 1

Status
Not open for further replies.

alexia32

Technical User
Jul 31, 2007
156
0
0
NZ
Hi,

I am trying to allowed my nim server to ssh to the clients without asking the passwd but I still have the passwd asked and even if I put the good passwd I have access denied...

I have put the id_dsa.pub on the authorised file on my clients.

Do you know where I have to modify to allow root to login as ssh?
ssh -v myclient
OpenSSH_4.3p2, OpenSSL 0.9.7g 11 Apr 2005
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Failed dlopen: /usr/krb5/lib/libkrb5.a(libkrb5.a.so): 0509-022 Cannot load module /usr/krb5/lib/libkrb5.a(libkrb5.a.so).
0509-026 System error: A file or directory in the path name does not exist.

debug1: Error loading Kerberos, disabling Kerberos auth.
debug1: Connecting to myclient [XX.XX.XXX.XXX] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type 2
debug1: Remote protocol version 1.99, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 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-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 'myclient' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:2
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/identity
debug1: Trying private key: /root/.ssh/id_rsa
debug1: Offering public key: /root/.ssh/id_dsa
debug1: Server accepts key: pkalg ssh-dss blen 434
debug1: read PEM private key done: type DSA
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: password
root@myclient's password:
debug1: Authentications that can continue: publickey,password,keyboard-interactive
Permission denied, please try again.
root@myclient's password:
debug1: Authentications that can continue: publickey,password,keyboard-interactive
Permission denied, please try again.
root@myclient's password:
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: No more authentication methods to try.
Permission denied (publickey,password,keyboard-interactive


Here the profil user root:
lsuser -f root
root:
id=0
pgrp=system
groups=system,bin,sys,security,cron,audit,lp
home=/root
shell=/usr/bin/ksh
auditclasses=general,SRC,tcpip
login=true
su=true
rlogin=false
daemon=true
admin=true
sugroups=ALL
admgroups=
tpath=nosak
ttys=ALL
expires=0
auth1=SYSTEM
auth2=NONE
umask=27
registry=files
SYSTEM=compat
logintimes=
loginretries=0
pwdwarntime=14
account_locked=false
minage=0
maxage=13
maxexpired=4
minalpha=1
minother=1
mindiff=3
maxrepeats=8
minlen=8
histexpire=52
histsize=4
pwdchecks=
dictionlist=
fsize=-1
cpu=-1
data=262144
stack=65536
core=0
rss=65536
nofiles=2000
time_last_login=1184816236
time_last_unsuccessful_login=1194823956
tty_last_login=/dev/vty0
tty_last_unsuccessful_login=ssh
host_last_login=mynimserver
host_last_unsuccessful_login=XX.XX.XXX.XXX
unsuccessful_login_count=0
roles=


I think the user root is really somewhere not allowed but I want to modify it on the nim server...

Thanks in advance
Cheers
Al
 
Check your /etc/ssh/sshd_config file on the client, there is an entry like this:

PermitRootLogin no

Change "no" to "yes" and restart sshd.

Beware though, this not good practice as it will allow anyone to log in with root remotely. Use with care.

IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter
 
Hi,

Thanks a lot!! It was set to no and they want it to be set to no...... So I will write a script that use sudo and create a user that have root access to do it...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top