Networking Forums

Networking Forums > Computer Networking > Linux Networking > sshd not working

Reply
Thread Tools Display Modes

sshd not working

 
 
Bob Tennent
Guest
Posts: n/a

 
      04-14-2005, 08:18 PM
I installed Fedora 3 on a friend's computer. It's working fine but I
thought I would set up remote access for myself to clear up any problems
that might arise. The computer is on a local network behind an ADSL
modem configured as a firewall and router. So I configured the router to
forward port 22 to the Linux box. I believe I can reach the Linux box
because I get a password dialogue. But it's not accepting what I know is
the proper password. I haven't changed the default /etc/ssh/sshd_config.
The sshd daemon is running. What have I forgotten?

Bob T.
 
Reply With Quote
 
 
 
 
Mihai Osian
Guest
Posts: n/a

 
      04-15-2005, 02:12 PM
Bob Tennent wrote:

>I installed Fedora 3 on a friend's computer. It's working fine but I
>thought I would set up remote access for myself to clear up any problems
>that might arise. The computer is on a local network behind an ADSL
>modem configured as a firewall and router. So I configured the router to
>forward port 22 to the Linux box. I believe I can reach the Linux box
>because I get a password dialogue. But it's not accepting what I know is
>the proper password. I haven't changed the default /etc/ssh/sshd_config.
>The sshd daemon is running. What have I forgotten?
>
>Bob T.
>
>


If you are trying to log-in as root you need to set "PermitRootLogin
yes" in /etc/ssh/sshd_config, otherwise you get exactly what you describe.

Mihai
 
Reply With Quote
 
Bob Tennent
Guest
Posts: n/a

 
      04-15-2005, 04:24 PM
On Fri, 15 Apr 2005 16:12:46 +0200, Mihai Osian wrote:
> Bob Tennent wrote:
>
>>I installed Fedora 3 on a friend's computer. It's working fine but I
>>thought I would set up remote access for myself to clear up any problems
>>that might arise. The computer is on a local network behind an ADSL
>>modem configured as a firewall and router. So I configured the router to
>>forward port 22 to the Linux box. I believe I can reach the Linux box
>>because I get a password dialogue. But it's not accepting what I know is
>>the proper password. I haven't changed the default /etc/ssh/sshd_config.
>>The sshd daemon is running. What have I forgotten?
>>

>
> If you are trying to log-in as root you need to set "PermitRootLogin
> yes" in /etc/ssh/sshd_config, otherwise you get exactly what you describe.


Thanks. The default sshd_config has

#PermitRootLogin yes

which is *supposed* to mean that the default is yes but I guess it's
conceivable that it's lying.

Bob T.
 
Reply With Quote
 
Tauno Voipio
Guest
Posts: n/a

 
      04-15-2005, 06:37 PM
Bob Tennent wrote:
> On Fri, 15 Apr 2005 16:12:46 +0200, Mihai Osian wrote:
> > Bob Tennent wrote:
> >
> >>I installed Fedora 3 on a friend's computer. It's working fine but I
> >>thought I would set up remote access for myself to clear up any problems
> >>that might arise. The computer is on a local network behind an ADSL
> >>modem configured as a firewall and router. So I configured the router to
> >>forward port 22 to the Linux box. I believe I can reach the Linux box
> >>because I get a password dialogue. But it's not accepting what I know is
> >>the proper password. I haven't changed the default /etc/ssh/sshd_config.
> >>The sshd daemon is running. What have I forgotten?
> >>

> >
> > If you are trying to log-in as root you need to set "PermitRootLogin
> > yes" in /etc/ssh/sshd_config, otherwise you get exactly what you describe.

>
> Thanks. The default sshd_config has
>
> #PermitRootLogin yes
>
> which is *supposed* to mean that the default is yes but I guess it's
> conceivable that it's lying.



I'd keep the root login disabled with the current rate of SSH
brute-force script-kiddy crackers around. I got tired of the
filling of auth.log with such attempts and even moved the daemon
to a different port.

If you need root acess, just log in with a normal user (and please
use a non-obvious username) and then su to root - makes the thing
a little more difficult for the undesired guests.

--

Tauno Voipio
tauno voipio (at) iki fi

 
Reply With Quote
 
Bob Tennent
Guest
Posts: n/a

 
      04-15-2005, 06:45 PM
On Fri, 15 Apr 2005 18:37:50 GMT, Tauno Voipio wrote:
> Bob Tennent wrote:
>> On Fri, 15 Apr 2005 16:12:46 +0200, Mihai Osian wrote:
>> > Bob Tennent wrote:
>> >
>> >>I installed Fedora 3 on a friend's computer. It's working fine but I
>> >>thought I would set up remote access for myself to clear up any problems
>> >>that might arise. The computer is on a local network behind an ADSL
>> >>modem configured as a firewall and router. So I configured the router to
>> >>forward port 22 to the Linux box. I believe I can reach the Linux box
>> >>because I get a password dialogue. But it's not accepting what I know is
>> >>the proper password. I haven't changed the default /etc/ssh/sshd_config.
>> >>The sshd daemon is running. What have I forgotten?
>> >>
>> >
>> > If you are trying to log-in as root you need to set "PermitRootLogin
>> > yes" in /etc/ssh/sshd_config, otherwise you get exactly what you describe.

>>
>> Thanks. The default sshd_config has
>>
>> #PermitRootLogin yes
>>
>> which is *supposed* to mean that the default is yes but I guess it's
>> conceivable that it's lying.

>
> I'd keep the root login disabled with the current rate of SSH
> brute-force script-kiddy crackers around. I got tired of the
> filling of auth.log with such attempts and even moved the daemon
> to a different port.
>
> If you need root acess, just log in with a normal user (and please
> use a non-obvious username) and then su to root - makes the thing
> a little more difficult for the undesired guests.


Hmm. Maybe I need a script kiddy to crack the box for me because I can't
do it even with the password! :+) But thanks for the advice.
 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      04-15-2005, 06:51 PM
In comp.os.linux.networking Tauno Voipio <(E-Mail Removed)>:
> Bob Tennent wrote:
>> On Fri, 15 Apr 2005 16:12:46 +0200, Mihai Osian wrote:
>> > Bob Tennent wrote:


[ Can't login via ssh ]

>> > If you are trying to log-in as root you need to set "PermitRootLogin
>> > yes" in /etc/ssh/sshd_config, otherwise you get exactly what you describe.

>>
>> Thanks. The default sshd_config has
>>
>> #PermitRootLogin yes
>>
>> which is *supposed* to mean that the default is yes but I guess it's
>> conceivable that it's lying.


No it isn't, the default is not to allow direct root ssh logins.

> I'd keep the root login disabled with the current rate of SSH
> brute-force script-kiddy crackers around. I got tired of the
> filling of auth.log with such attempts and even moved the daemon
> to a different port.


> If you need root acess, just log in with a normal user (and please
> use a non-obvious username) and then su to root - makes the thing
> a little more difficult for the undesired guests.


Full ack, if you really think you have to open port 22 for the
rest of the world, disable root logins. Disabling password logins
completely and using key-login is another idea to enhance
security.


--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 141: disks spinning backwards - toggle the
hemisphere jumper.
 
Reply With Quote
 
SEND NO SPAM
Guest
Posts: n/a

 
      04-16-2005, 04:00 AM
Bob Tennent wrote:
> On Fri, 15 Apr 2005 16:12:46 +0200, Mihai Osian wrote:
> > Bob Tennent wrote:
> >
> >>I installed Fedora 3 on a friend's computer. It's working fine but I
> >>thought I would set up remote access for myself to clear up any problems
> >>that might arise. The computer is on a local network behind an ADSL
> >>modem configured as a firewall and router. So I configured the router to
> >>forward port 22 to the Linux box. I believe I can reach the Linux box
> >>because I get a password dialogue. But it's not accepting what I know is
> >>the proper password. I haven't changed the default /etc/ssh/sshd_config.
> >>The sshd daemon is running. What have I forgotten?
> >>

> >
> > If you are trying to log-in as root you need to set "PermitRootLogin
> > yes" in /etc/ssh/sshd_config, otherwise you get exactly what you describe.

>
> Thanks. The default sshd_config has
>
> #PermitRootLogin yes
>
> which is *supposed* to mean that the default is yes but I guess it's
> conceivable that it's lying.
>
> Bob T.


see the # at the beginning
that means anything after it is a comment
remove it if you really want ot allow root access
 
Reply With Quote
 
Bob Tennent
Guest
Posts: n/a

 
      04-16-2005, 10:42 AM
On Sat, 16 Apr 2005 04:00:15 GMT, SEND NO SPAM wrote:
>> >
>> >>I installed Fedora 3 on a friend's computer. It's working fine but I
>> >>thought I would set up remote access for myself to clear up any problems
>> >>that might arise. The computer is on a local network behind an ADSL
>> >>modem configured as a firewall and router. So I configured the router to
>> >>forward port 22 to the Linux box. I believe I can reach the Linux box
>> >>because I get a password dialogue. But it's not accepting what I know is
>> >>the proper password. I haven't changed the default /etc/ssh/sshd_config.
>> >>The sshd daemon is running. What have I forgotten?
>> >
>> > If you are trying to log-in as root you need to set "PermitRootLogin
>> > yes" in /etc/ssh/sshd_config, otherwise you get exactly what you describe.

>>
>> Thanks. The default sshd_config has
>>
>> #PermitRootLogin yes
>>
>> which is *supposed* to mean that the default is yes but I guess it's
>> conceivable that it's lying.

>
> see the # at the beginning
> that means anything after it is a comment
> remove it if you really want ot allow root access


This is what I was referring to:

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options change a
# default value.

Bob T.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sshd consuming 100% of cpu Unruh Linux Networking 2 06-12-2008 01:55 PM
sshd question Pythoni Linux Networking 6 11-04-2006 07:05 PM
sshd ssh question CL (dnoyeB) Gilbert Linux Networking 6 08-05-2005 03:43 PM
sshd Timeout Buck Turgidson Linux Networking 5 11-08-2003 09:55 PM
LD_PRELOAD for sshd ? Markus Fischer Linux Networking 0 09-01-2003 02:25 PM



1 2 3 4 5 6 7 8 9 10 11