Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > SuSE Linux Help
Reload this Page ssh access denied
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

SuSE Linux Help For help and discussions related to SuSE Linux

Reply
 
Thread Tools Display Modes
Old 07-06-2005   #1 (permalink)
Just Joined!
 
Join Date: Jul 2005
Posts: 5
ssh access denied

Hi.
I'm getting "Access Denied" when I try to login via SSH to my SuSe box. The service is running, but I'm being denied access. I've tried with multiple accounts, all with valid passwords. In (much) earlier versions of SuSe, I never had this problem, so I'm guessing there's a security setting somewhere I need to change... but I can't find it. Please help
durenthal is offline   Reply With Quote
Old 07-06-2005   #2 (permalink)
Linux Guru
 
dylunio's Avatar
 
Join Date: Aug 2004
Location: Cymru
Posts: 4,157
how are you trying to login?
Code:
ssh user@12.34.45.1
(replace user with a username, and 12.34.45.1 with the ip or hostname of the machine)

It should then prompt you for a password for the user, which you should enter.

Edit: you may also look into tcp wrappers
__________________
Registered Linux User #371543!
Get force-get May The Source Be With You
/dev/null
/dev/null2
dylunio is offline   Reply With Quote
Old 07-06-2005   #3 (permalink)
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,699
First of all, did you open up port 22?

Second, on the tcp wrappers note, you may have to explicitly provide an entry in /etc/hosts.allow.

An entry like
Code:
sshd : 192.168.1.201 : ALLOW
where 192.168.1.201 is the IP (or portion of IP, e.g. 192.168.1) you want to allow access.
anomie is offline   Reply With Quote
Old 07-06-2005   #4 (permalink)
Just Joined!
 
Join Date: Jul 2005
Posts: 5
Quote:
Originally Posted by anomie
First of all, did you open up port 22?
Of course. Had it not been open I wouldn't have been prompted for a uid and pwd.
durenthal is offline   Reply With Quote
Old 07-06-2005   #5 (permalink)
Just Joined!
 
Join Date: Jul 2005
Posts: 5
Quote:
Originally Posted by dylunio
how are you trying to login?
Code:
ssh user@12.34.45.1
(replace user with a username, and 12.34.45.1 with the ip or hostname of the machine)

It should then prompt you for a password for the user, which you should enter.
I'm using putty from a windows box to ssh in. I get a valid ssh connection. The linux server prompts me for a uid and password. Both are correct. The linux server returns ACCESS DENIED.

It appears to be a permissions issue rather than a service issue.
durenthal is offline   Reply With Quote
Old 07-06-2005   #6 (permalink)
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,699
Or perhaps a tcp wrappers issue, as we have both mentioned already. You might like to try it out.
anomie is offline   Reply With Quote
Old 07-06-2005   #7 (permalink)
Just Joined!
 
Join Date: Jul 2005
Posts: 5
Adding an explicit entry for sshd in /etc/hosts.allow made no difference. Still get the same "Access denied" response after each login attempt.
durenthal is offline   Reply With Quote
Old 07-06-2005   #8 (permalink)
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,699
I am beginning to suspect the putty client may be the problem. If there is an option in putty, make sure it is set to use ssh protocol 2.

It would be helpful if there was a Unix / Linux box you had access to so that you could try the plain CLI that was suggested, thus at least eliminating a screwy client software as the problem.
anomie is offline   Reply With Quote
Old 07-06-2005   #9 (permalink)
Just Joined!
 
Join Date: Jul 2005
Posts: 5
No sooner said than done. I have multiple linux servers and only have this problem one the one server. I tried it from another linux box and it worked just fine, suggesting that the problem is indeed putty. Putty is configured for v2 as preferred. Setting it to v2 only fixes the issue.

Thx.
durenthal is offline   Reply With Quote
Old 07-16-2005   #10 (permalink)
Just Joined!
 
Join Date: Jul 2005
Posts: 1
I got the same problem after having a clean SuSE 9.1 install. It will authenticate successfully, but then kick me out I'm trying to ssh from another linux box.

Here is an example:

prompt:> ssh sillychild@***.***.***.***
Keyboard-interactive:
Password:
Keyboard-interactive:
Authentication successful.
prompt:> (back to the promt of client machine)

It says authentication successful, but then kicks me out. Any idea what is going wrong?

Just for your reference, here is sshd_config file:

Code:
#       $OpenBSD: sshd_config,v 1.68 2003/12/29 16:39:50 millert Exp $

# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.

# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options change a
# default value.

#Port 22
Protocol 2,1
#ListenAddress 0.0.0.0
#ListenAddress ::

#HostKey for protocol version 1
HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key

# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
#ServerKeyBits 768

# Logging
#obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:

#LoginGraceTime 2m
PermitRootLogin no
StrictModes yes

RSAAuthentication yes
#PubkeyAuthentication yes
#AuthorizedKeysFile     .ssh/authorized_keys

# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#RhostsRSAAuthentication no
# similar for protocol version 2
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication no
#PermitEmptyPasswords no

# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

# Set this to 'yes' to enable support for the deprecated 'gssapi' authentication
# mechanism to OpenSSH 3.8p1. The newer 'gssapi-with-mic' mechanism is included
# in this release. The use of 'gssapi' is deprecated due to the presence of
# potential man-in-the-middle attacks, which 'gssapi-with-mic' is not susceptible to.
#GSSAPIEnableMITMAttack no

# Set this to 'yes' to enable PAM authentication (via challenge-response)
# and session processing. Depending on your PAM configuration, this may
# bypass the setting of 'PasswordAuthentication' and 'PermitEmptyPasswords'
UsePAM yes

#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
UseLogin yes
#UsePrivilegeSeparation yes
PermitUserEnvironment yes
#Compression yes
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10

# no default banner path
#Banner /some/path

# override default of no subsystems
Subsystem       sftp    /usr/lib/ssh/sftp-server
Thanks.
SillyChild is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 11:01 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0