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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot login from account other than root

Status
Not open for further replies.

SirCharles

Programmer
Joined
Jun 10, 2002
Messages
212
Location
US
Using ssh to login to SuSE 8 EL, I am
not able to login using any account other than root.

Please assist.

Ex. ssl -h username ip.ip.ip.ip
Connection refused.
Connection closed by host.

 
Correction: command is ssh -l username ip.ip.ip.ip
 
That is odd, with my SSH setup, I can log in as anything EXCEPT root. ;-)
 
Try adding the debug flag to ssh that should point you in the direction of the problem, also check your logs for the error. Or paste up the output "here" of:

ssh -vvv -l <username> ip.ip.ip.ip

Laurie.
 
ssl -h username ip.ip.ip.ip
Connection refused.
Connection closed by host

^^ By your description that can only mean that the remote machine isnt accepting the connection, or simply that no service is running on port 22 when you tried to login. make sure SSHD is running on the machine, make sure it's listening on port 22 and on the IP you're trying to connect to.
 
Nor perhaps a "nologin" file in /etc ?

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

Deffo check out the /etc/nologin as recommended by aixmurderer, note that would also bar users from logging in on a console.

If that is not the problem run ssh with -v option to see if you that gives you any other clue.

Also, post your sshd config (strip out comments for brevity) so we may offer more help.

 
is your ssh daemon up and running?

/etc/init.d/sshd start

check the connection port under /etc/ssh/sshd_config

Port 22

if any other port than 22 connect use the "-p" option for the port:

ssh -l <user> -p <port> <host>

I also would check if you got iptables running. Maybe the problem is that this port is locked by iptables.

If so stop it via

/etc/init.d/iptables stop

hope it helps
kind regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top