Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-05-2007, 05:18 PM   #1
LQ Newbie
Registered: Oct 2007
Posts: 3

Rep: Reputation: 0
Gentoo sshd help

hello linux guru's

I need a little bit help with a problem i'm having And DON'T understand why and how to resolve it.

I installed gentoo 2007 6.*.22-r5 No problems there.
After installing gentoo i installed samba server for a home network.
Now i want to lose the monitor and login remotly via a windows computer for updating and managing the system. To do this i knew gentoo had sshd standart so I added this to auto start by doing

# rc-update add sshd default

after this i had to edit the config file in

and wrote the folowing lines:

Port 22
Protocol 2
ServerKeyBits 2048
SyslogFacility AUTH
LogLevel INFO
LoginGraceTime 60
PermitRootLogin no
RSAAuthentication no
PubkeyAuthentication yes
PasswordAuthentication no
PermitEmptyPasswords no
PAMAuthenticationViaKbdInt no
Compression yes
KeepAlive yes
ClientAliveInterval 30
ClientAliveCountMax 4

After this I restarted sshd and to be sure I rebooted my system. ssh is running.

THE PROBLEM: when I connect with a client "putty" it shows the login as: screen. I type in my username "NOT ROOT becouse that is disabled" and hit enter

after doing this I get the following error message:

DISCONNECTED: No Supported authentication methods available

How do I resolve this problem and is it possible to login to KDE like remotedesktop in windows with sshd

Old 10-05-2007, 08:28 PM   #2
Registered: Dec 2004
Distribution: Slackware, Arch, FreeBSD
Posts: 202

Rep: Reputation: 34
Try setting RSAAuthentication to yes, and make sure you have ssh_host_rsa_key in your /etc/ssh directory, or wherever sshd_config is located. Restart sshd. There should also be some messages in /var/log/messages that may help you troubleshoot.

To login to KDE as a remote desktop type session you will probably want to look into tightvnc, and piping the data through an ssh tunnel.
Old 10-06-2007, 11:03 AM   #3
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
You should first make sure password or keyboard-interactive authentication works first before attempting key-exchange.

With key-exchange your Client (PuTTY) must be configured for key-exchange authentication have the same keys as the Linux user (usually found in ~/.ssh).

PuTTY Public keys
Old 10-06-2007, 03:15 PM   #4
LQ Newbie
Registered: Oct 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks I'll try this and post if it works
Old 10-07-2007, 02:34 PM   #5
LQ Newbie
Registered: Oct 2007
Posts: 3

Original Poster
Rep: Reputation: 0
It works fine now, the problem was that i saved the key in the wrong folder.

thank you all for helping


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems running sshd on gentoo locazor Linux - Security 8 05-21-2007 12:26 AM
Gentoo live cd will not mount /dev/hdc on HP Omnibook xe3 (Gentoo 2006.0.0) tommygoober Linux - Software 3 03-16-2007 07:51 AM
FC4-Starting sshd: Privilege separation user sshd does not exist FAILED kiranherekar Fedora 5 12-29-2005 03:22 PM
Enabling SSH in mandrake 9.2 - sshd vs. sshd-xinetd DogTags Linux - Newbie 7 11-25-2003 01:17 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:36 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration