Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SSH authentication
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Rust710
n00b
n00b


Joined: 11 Sep 2005
Posts: 17

PostPosted: Tue Dec 13, 2005 7:13 pm    Post subject: SSH authentication Reply with quote

I have sshd working fine with both password and public key authentication, is it possible to disable password authentication for all IP addresses, except localhost?
Back to top
View user's profile Send private message
Zeos
n00b
n00b


Joined: 26 Oct 2003
Posts: 13

PostPosted: Tue Dec 13, 2005 7:18 pm    Post subject: Reply with quote

set "PasswordAuthentication no" in /etc/ssh/sshd_config to disable passwords alltogether ....just curious, why would you want to login via ssh from localhost? :?:
Back to top
View user's profile Send private message
Rust710
n00b
n00b


Joined: 11 Sep 2005
Posts: 17

PostPosted: Tue Dec 13, 2005 7:35 pm    Post subject: Reply with quote

NX authenticates the user through ssh from localhost, so that doesn't help. I need it to allow password authentication from localhost.
Back to top
View user's profile Send private message
Zeos
n00b
n00b


Joined: 26 Oct 2003
Posts: 13

PostPosted: Tue Dec 13, 2005 10:24 pm    Post subject: Reply with quote

Ahh, I see .....had me scratching my head there :lol:

How about having a seperate ssh process listen on lo?

Start your current sshd as you do now(password login's disabled) and bind it to your external ip (ListenAddress). Then create a second config file, allowing passwords and listening on port 22 on 127.0.0.1 (ListenAddress), start the second instance with "/usr/sbin/sshd -f /etc/ssh/sshd_config_localhost"
Back to top
View user's profile Send private message
adsmith
Veteran
Veteran


Joined: 26 Sep 2004
Posts: 1386
Location: NC, USA

PostPosted: Tue Dec 13, 2005 10:50 pm    Post subject: Reply with quote

used host-based authentication for localhost (or all machines on the lan)

documentation on host-based auth is reasonably abundant.
Back to top
View user's profile Send private message
outspoken
Guru
Guru


Joined: 14 Feb 2004
Posts: 464
Location: orlando, fl

PostPosted: Tue Dec 13, 2005 11:05 pm    Post subject: Re: SSH authentication Reply with quote

Rust710 wrote:
I have sshd working fine with both password and public key authentication, is it possible to disable password authentication for all IP addresses, except localhost?


what version of sshd are you using?

Code:

ssh -V
Back to top
View user's profile Send private message
Rust710
n00b
n00b


Joined: 11 Sep 2005
Posts: 17

PostPosted: Wed Dec 14, 2005 12:04 am    Post subject: Re: SSH authentication Reply with quote

outspoken wrote:

what version of sshd are you using?


OpenSSH_4.2p1, OpenSSL 0.9.7e 25 Oct 2004
Back to top
View user's profile Send private message
Rust710
n00b
n00b


Joined: 11 Sep 2005
Posts: 17

PostPosted: Wed Dec 14, 2005 12:55 am    Post subject: Reply with quote

I got Hostbased Authentication to work, but the only way I got it to work is by adding:
Code:

HostbasedAuthentication yes
EnableSSHKeysign yes

to /etc/ssh/ssh_config . NX is either not listening to it, or doesn't have a ssh-keysign that's needed for hostbased authentication. Anywhere else I should look?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum