SSH Hostbased Authentication not working
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have been trying to setup host based auth between 2 of my servers and facing some issues.
My setup is:
Client
Change in
/etc/ssh/ssh_config
:EnableSSHKeySign yes
HostbasedAuthentication yes
Server
Change in
sshd_config
:HostbasedAuthentication yes
IgnoreRhosts noCreated a file
/etc/ssh/shosts.equiv
with client IP and username- created
/etc/ssh/ssh_known_hosts
with the host name IP address comma separated and public keys of client.
When I try to connect I get the error:
debug3: authmethod_lookup hostbased
debug3: remaining preferred:
debug1: No more authentication methods to try.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password,hostbased).
Any hints how to proceed further?
ssh
add a comment |Â
up vote
0
down vote
favorite
I have been trying to setup host based auth between 2 of my servers and facing some issues.
My setup is:
Client
Change in
/etc/ssh/ssh_config
:EnableSSHKeySign yes
HostbasedAuthentication yes
Server
Change in
sshd_config
:HostbasedAuthentication yes
IgnoreRhosts noCreated a file
/etc/ssh/shosts.equiv
with client IP and username- created
/etc/ssh/ssh_known_hosts
with the host name IP address comma separated and public keys of client.
When I try to connect I get the error:
debug3: authmethod_lookup hostbased
debug3: remaining preferred:
debug1: No more authentication methods to try.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password,hostbased).
Any hints how to proceed further?
ssh
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have been trying to setup host based auth between 2 of my servers and facing some issues.
My setup is:
Client
Change in
/etc/ssh/ssh_config
:EnableSSHKeySign yes
HostbasedAuthentication yes
Server
Change in
sshd_config
:HostbasedAuthentication yes
IgnoreRhosts noCreated a file
/etc/ssh/shosts.equiv
with client IP and username- created
/etc/ssh/ssh_known_hosts
with the host name IP address comma separated and public keys of client.
When I try to connect I get the error:
debug3: authmethod_lookup hostbased
debug3: remaining preferred:
debug1: No more authentication methods to try.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password,hostbased).
Any hints how to proceed further?
ssh
I have been trying to setup host based auth between 2 of my servers and facing some issues.
My setup is:
Client
Change in
/etc/ssh/ssh_config
:EnableSSHKeySign yes
HostbasedAuthentication yes
Server
Change in
sshd_config
:HostbasedAuthentication yes
IgnoreRhosts noCreated a file
/etc/ssh/shosts.equiv
with client IP and username- created
/etc/ssh/ssh_known_hosts
with the host name IP address comma separated and public keys of client.
When I try to connect I get the error:
debug3: authmethod_lookup hostbased
debug3: remaining preferred:
debug1: No more authentication methods to try.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password,hostbased).
Any hints how to proceed further?
ssh
edited Apr 24 at 6:04
U880D
399314
399314
asked Apr 19 at 20:11
user3260022
31
31
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
Read the server log (/var/log/messages, /var/log/secure and/or /var/log/auth.log, depending on distribution and version) and see what sshd
logged as the rejection reason.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
Read the server log (/var/log/messages, /var/log/secure and/or /var/log/auth.log, depending on distribution and version) and see what sshd
logged as the rejection reason.
add a comment |Â
up vote
0
down vote
accepted
Read the server log (/var/log/messages, /var/log/secure and/or /var/log/auth.log, depending on distribution and version) and see what sshd
logged as the rejection reason.
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
Read the server log (/var/log/messages, /var/log/secure and/or /var/log/auth.log, depending on distribution and version) and see what sshd
logged as the rejection reason.
Read the server log (/var/log/messages, /var/log/secure and/or /var/log/auth.log, depending on distribution and version) and see what sshd
logged as the rejection reason.
answered Apr 24 at 6:36
telcoM
10.4k11032
10.4k11032
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f438813%2fssh-hostbased-authentication-not-working%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password