Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-20-2006, 10:34 AM
|
#1
|
Member
Registered: Jun 2003
Location: Brazil
Distribution: Ubuntu
Posts: 137
Rep:
|
ssh -Permission denied
There is no problem logging into my Ubuntu 5.10 server as root or as user zaphod. When I try to log in as user friend it tells me:
$ ssh friend@lw
friend@lw's password:
Permission denied, please try again.
On the server /var/log/auth.log says:
May 20 15:58:14 lunkwill sshd[10161]: User friend from 192.168.111.12 not allowed because not listed in AllowUsers
May 20 15:58:14 lunkwill sshd[10161]: Failed none for invalid user friend from 192.168.111.12 port 49560 ssh2
On the server the /etc/ssh/sshd_conf reads:
Port 22
Protocol 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
UsePrivilegeSeparation yes
KeyRegenerationInterval 3600
ServerKeyBits 768
SyslogFacility AUTH
LogLevel INFO
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes
RSAAuthentication yes
PubkeyAuthentication yes
IgnoreRhosts yes
RhostsRSAAuthentication no
HostbasedAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no
X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
KeepAlive yes
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
UsePAM yes
AllowUsers zaphod rol friend
Where did it go wrong?
ZB
|
|
|
05-20-2006, 10:50 AM
|
#2
|
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
|
Does a user account friend exist on the machine. With out it the ssh login does not know the permission levels the user has. Create a user account and try again. The AllowedUsers option will define only the users allowed excluding everyone else.
Also it can be a security risk to allow root to login straight through ssh. Especially if it has a weak password. Login as a user and if you need root access then use ' su ' to get root access.
Brian1
Last edited by Brian1; 05-20-2006 at 10:52 AM.
|
|
|
05-20-2006, 11:31 AM
|
#3
|
Member
Registered: Jun 2003
Location: Brazil
Distribution: Ubuntu
Posts: 137
Original Poster
Rep:
|
Yes there is a user friend I know that it is not a good idea to run as root and I only added that to test my current problem.
ZB
|
|
|
05-21-2006, 10:07 AM
|
#4
|
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
|
Is there a .ssh directory in thier home directory?
Brian1
|
|
|
05-21-2006, 02:56 PM
|
#5
|
Member
Registered: Jun 2003
Location: Brazil
Distribution: Ubuntu
Posts: 137
Original Poster
Rep:
|
There is no .ssh directory as it is a small home network and there is no access to the server from outside the lan. I do not use public keys on the local network.
ZB
|
|
|
All times are GMT -5. The time now is 04:16 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|