For some reason, of which I have no idea, it worked later on when I
restarted the
computers and tried it again.

I had run reload, stop and start on both computers, and even shut them down
a few times, but it still didn't work, until later in the evening, when I
restarted
the computers in my test lab.

Now, I have to stop and start the server client to get it to initialize a
new session.
reload and restart don't work on /etc/init.d/ssh I imagine that's just a
minor bug.

Just one question. When I ssh into the server, it asks me for a password.
Not knowing
what password it wanted, my best guess was to enter the server's sudo
password and it worked.
Is that appropriate behaviour for key authentication? considering the
following info.
(Later I noticed that my PasswordAuthentication [in the sshd_config in first
email] was set to yes, and I changed it to no)

Thanks

On Thu, Apr 8, 2010 at 4:58 PM, David Kaiser <dkai...@cdk.com> wrote:

> Are the following instances of 'ubuntu' the same machine?  As in, you
> tried the telnet command and the ssh command from the same box?  Have
> you tried to run ssh as the root user?
>
> If the server allows incoming packets on port 22 (which it is doing with
> your telnet from root) then there isn't anything on the server which
> would restrict packets (like a firewall or tcp.rules implementation)
> that is blocking you just by your IP address.
>
> To me, that means there is likely something on the client that is
> restricting outbound port 22 to special users.  Try running ssh as root
> and see if it works.
>
> > r...@ubuntu:/home/paul# telnet 192.168.0.100 22
> > Trying 192.168.0.100...
> > Connected to 192.168.0.100.
> > Escape character is '^]'.
> > SSH-2.0-OpenSSH_5.1p1 Debian-5ubuntu1
> > ^C^C^^
> > Connection closed by foreign host.
> >
> > p...@ubuntu:~$ ssh 192.168.0.100
> > ssh: connect to host 192.168.0.100 port 22: Connection refused
> _______________________________________________
> LinuxUsers mailing list
> LinuxUsers@socallinux.org
> http://socallinux.org/cgi-bin/mailman/listinfo/linuxusers
>
_______________________________________________
LinuxUsers mailing list
LinuxUsers@socallinux.org
http://socallinux.org/cgi-bin/mailman/listinfo/linuxusers

Reply via email to