Results 1 to 2 of 2
I am trying to install openssh server with public key authentication on CentOS. But i am getting following error message:
Disconnected: No supported authentication method available
Server refused keys
my ...
- 04-19-2009 #1Just Joined!
- Join Date
- May 2008
- Posts
- 1
openssh server help requirened plz
I am trying to install openssh server with public key authentication on CentOS. But i am getting following error message:
Disconnected: No supported authentication method available
Server refused keys
my sshd_conf file is as follows:
Port 22
Protocol 2
AddressFamily inet
ListenAddress 172.20.14.162
LoginGraceTime 2m
PermitRootLogin no
MaxAuthTries 3
RSAAuthentication yes
PubkeyAuthentication yes
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
AuthorizedKeysFile ~/.ssh/authorized_keys
SyslogFacility AUTHPRIV
PasswordAuthentication no
ChallengeResponseAuthentication no
KerberosAuthentication no
GSSAPIAuthentication no
GSSAPICleanupCredentials yes
UsePAM no
AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
AcceptEnv LC_IDENTIFICATION LC_ALL
AllowGroups sshusers
MaxStartups 2
Banner /etc/ssh/banner
Subsystem sftp /usr/libexec/openssh/sftp-server
Please help me in this regard,
Kind regards,
Khurram
- 04-20-2009 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
What is the contents of the HostKey files? They should look something like this (this example is for the ssh_host_dsa_key file):
The RSA key should be somewhat longer than the DSA key.-----BEGIN DSA PRIVATE KEY-----
MIIBuwIBAAKBgQDtx3s6IvpLDPQ+YB4iF4u5EWEzkqHmMhaF9F SMN/nU50xbv+lx
swSCj5wcQH4kh50xa3TiYEuygU7xFkKQ2YY74nGHaeqQOh1Dfl mYjZRUUjlcaNXZ
52tGL1EEBXAQBt+tDW0A6O32CqMjOoWnN5M5NQs9c93KD7mV8G twYpRGEQIVAJ6c
qn0asL6J9Se4J6ZdzY/IpeXDAoGADB332o1ig4wg56IdHXiIs5GrW9y4FPPS6dDI
thOCxj4/oLBxGKdmwR68vqCckmMpaYe8p30auASK/w67/bvJK33+J3wrRZq1U6kQ
XCR+BlmhMssYVoUv20CEazC3uhpzhfgizeKEW5kju8Yup7GV40 nM6uSW3Je4Dhkq
8e4VmLMCgYASObBxweF8tEqXuXLuIxmLacwyhTjVt8jIkSv50f 5Y84fbT3Q4fi3d
/0Qfn5MFcT3RBeE1pDnlrgd4PLWZgQVk03kcgW36Jjmg0ndmmg5 FuOU+4/0pFmk5
EifQi4FrdzUnyGwruVyNWpP54hviQ/vEEMJnbyGM1eTnNGr3bm9VwAIVAISMp4F6
yC6aRJUDInR3JdF73uZW
-----END DSA PRIVATE KEY-----Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote