Slackware 12.0 and ssh - Slackware

This is a discussion on Slackware 12.0 and ssh - Slackware ; I have installed slackware 12.0 on my laptop, the only problem that remains is ssh. I can connect to my other computers via ssh from the laptop, but I can't connect from the other computers to my laptop. The command ...

+ Reply to Thread
Results 1 to 12 of 12

Thread: Slackware 12.0 and ssh

  1. Slackware 12.0 and ssh

    I have installed slackware 12.0 on my laptop, the only problem that
    remains is ssh.
    I can connect to my other computers via ssh from the laptop, but I can't
    connect from the other computers to my laptop. The command "ssh..."
    remains with no error message and the connection cannot be established.
    (I have already cleaned the '.ssh/known_hosts' files on the other computers)
    What can I do ?
    please help....




  2. Re: Slackware 12.0 and ssh

    On Mon, 09 Jul 2007 20:23:41 +0200, Jean-Marc DREZET wrote:

    > I have installed slackware 12.0 on my laptop, the only problem that
    > remains is ssh.
    > I can connect to my other computers via ssh from the laptop, but I can't
    > connect from the other computers to my laptop. The command "ssh..."
    > remains with no error message and the connection cannot be established.
    > (I have already cleaned the '.ssh/known_hosts' files on the other
    > computers) What can I do ?


    Are you sure that the SSH daemon is running?



  3. Re: Slackware 12.0 and ssh

    On Mon, 9 Jul 2007, J. Sommers wrote:
    > On Mon, 09 Jul 2007 20:23:41 +0200, Jean-Marc DREZET wrote:
    >> I have installed slackware 12.0 on my laptop, the only problem that
    >> remains is ssh.
    >> I can connect to my other computers via ssh from the laptop, but I can't
    >> connect from the other computers to my laptop. The command "ssh..."
    >> remains with no error message and the connection cannot be established.
    >> (I have already cleaned the '.ssh/known_hosts' files on the other
    >> computers) What can I do ?

    >
    > Are you sure that the SSH daemon is running?


    that's what i would guess - no sshd running.
    the symptoms of timing out, hanging, and no connection are typical.

    the OP should check that the file /etc/rc.d/rc.sshd is executable,
    by running pkgtool, select 'Setup', select 'Services', and look
    at the bottom of that page for rc.sshd ...

    HTH
    --
    William Hunt, Portland Oregon USA

  4. Re: Slackware 12.0 and ssh

    William Hunt wrote:
    > On Mon, 9 Jul 2007, J. Sommers wrote:
    >> On Mon, 09 Jul 2007 20:23:41 +0200, Jean-Marc DREZET wrote:
    >>> I have installed slackware 12.0 on my laptop, the only problem that
    >>> remains is ssh.
    >>> I can connect to my other computers via ssh from the laptop, but I
    >>> can't
    >>> connect from the other computers to my laptop. The command "ssh..."
    >>> remains with no error message and the connection cannot be established.
    >>> (I have already cleaned the '.ssh/known_hosts' files on the other
    >>> computers) What can I do ?

    >>
    >> Are you sure that the SSH daemon is running?

    >
    > that's what i would guess - no sshd running.
    > the symptoms of timing out, hanging, and no connection are typical.
    >
    > the OP should check that the file /etc/rc.d/rc.sshd is executable,
    > by running pkgtool, select 'Setup', select 'Services', and look
    > at the bottom of that page for rc.sshd ...
    >
    > HTH


    Yes, sshd is running. Anyway, ssh and scp work in the direction
    laptop-->other computer, but not in the other side.

    I use ipw2200 wifi (eth1) and a router to connect with the other
    computers, and the following script

    iwconfig eth1 essid "linksys" mode Managed key XXXXXXXXX
    route add 192.168.1.1 dev eth1
    route add default gw 192.168.1.1
    ifconfig eth0 down

    is there something wrong ?


  5. Re: Slackware 12.0 and ssh

    On Tue, 10 Jul 2007 17:05:44 +0200, Jean-Marc DREZET wrote:

    > William Hunt wrote:
    >> On Mon, 9 Jul 2007, J. Sommers wrote:
    >>> On Mon, 09 Jul 2007 20:23:41 +0200, Jean-Marc DREZET wrote:
    >>>> I have installed slackware 12.0 on my laptop, the only problem that
    >>>> remains is ssh.
    >>>> I can connect to my other computers via ssh from the laptop, but I
    >>>> can't
    >>>> connect from the other computers to my laptop. The command "ssh..."
    >>>> remains with no error message and the connection cannot be
    >>>> established. (I have already cleaned the '.ssh/known_hosts' files on
    >>>> the other computers) What can I do ?
    >>>
    >>> Are you sure that the SSH daemon is running?

    >>
    >> that's what i would guess - no sshd running. the symptoms of timing
    >> out, hanging, and no connection are typical.
    >>
    >> the OP should check that the file /etc/rc.d/rc.sshd is executable, by
    >> running pkgtool, select 'Setup', select 'Services', and look at the
    >> bottom of that page for rc.sshd ...
    >>
    >> HTH

    >
    > Yes, sshd is running.


    What are you getting if from an external machine you telnet to
    port 22 in your laptop?



    > Anyway, ssh and scp work in the direction
    > laptop-->other computer, but not in the other side.
    >
    > I use ipw2200 wifi (eth1) and a router to connect with the other
    > computers, and the following script
    >
    > iwconfig eth1 essid "linksys" mode Managed key XXXXXXXXX route add
    > 192.168.1.1 dev eth1
    > route add default gw 192.168.1.1
    > ifconfig eth0 down
    >
    > is there something wrong ?



  6. Re: Slackware 12.0 and ssh

    J. Sommers wrote:
    >
    > What are you getting if from an external machine you telnet to
    > port 22 in your laptop?
    >
    >


    going other_computer--->laptop I get :

    Trying 192.168.1.105...
    Connected to 192.168.1.105.
    Escape character is '^]'.

    and then nothing happens

    -----------------------------------------------

    on the opposite direction laptop--->other_computer I get:

    Trying 192.168.1.105...
    Connected to 192.168.1.105.
    Escape character is '^]'.
    SSH-1.99-OpenSSH_4.4

    and when I hit 'Enter' the connection is closed with the message :

    Protocol mismatch.
    Connection closed by foreign host.

    --------------------------------------------------


    PS : the other computer has Slackware 11.0






  7. Re: Slackware 12.0 and ssh

    On Tue, 10 Jul 2007 19:56:30 +0200, Jean-Marc DREZET wrote:

    > J. Sommers wrote:
    >>
    >> What are you getting if from an external machine you telnet to
    >> port 22 in your laptop?
    >>
    >>
    >>

    > going other_computer--->laptop I get :
    >
    > Trying 192.168.1.105...
    > Connected to 192.168.1.105.
    > Escape character is '^]'.
    >
    > and then nothing happens


    Well, as you can see, no ssh daemon is listening at port 22 in
    your laptop. Otherwise you would be getting a message like the one below,
    when you telnet to port 22 on your other computer.

    If at the command line in your laptop you type

    ps awux | egrep sshd

    what is it that you get? In my box I get


    root 2499 0.0 0.0 3688 1068 ? Ss Jul05 0:00 /usr/
    sbin/sshd
    xxx 6312 0.0 0.0 1672 392 pts/12 R+ 11:30 0:00 egrep
    sshd



    >
    > -----------------------------------------------
    >
    > on the opposite direction laptop--->other_computer I get:
    >
    > Trying 192.168.1.105...
    > Connected to 192.168.1.105.
    > Escape character is '^]'.
    > SSH-1.99-OpenSSH_4.4
    >
    > and when I hit 'Enter' the connection is closed with the message :
    >
    > Protocol mismatch.
    > Connection closed by foreign host.
    >


    OK, that's normal.

    > --------------------------------------------------
    >
    >
    > PS : the other computer has Slackware 11.0



  8. Re: Slackware 12.0 and ssh

    J. Sommers wrote:
    > On Tue, 10 Jul 2007 19:56:30 +0200, Jean-Marc DREZET wrote:
    >
    >
    >> J. Sommers wrote:
    >>
    >>> What are you getting if from an external machine you telnet to
    >>> port 22 in your laptop?
    >>>
    >>>
    >>>
    >>>

    >> going other_computer--->laptop I get :
    >>
    >> Trying 192.168.1.105...
    >> Connected to 192.168.1.105.
    >> Escape character is '^]'.
    >>
    >> and then nothing happens
    >>

    >
    > Well, as you can see, no ssh daemon is listening at port 22 in
    > your laptop. Otherwise you would be getting a message like the one below,
    > when you telnet to port 22 on your other computer.
    >
    > If at the command line in your laptop you type
    >
    > ps awux | egrep sshd
    >
    > what is it that you get? In my box I get
    >
    >
    > root 2499 0.0 0.0 3688 1068 ? Ss Jul05 0:00 /usr/
    > sbin/sshd
    > xxx 6312 0.0 0.0 1672 392 pts/12 R+ 11:30 0:00 egrep
    > sshd
    >
    >
    >
    >


    I get this :

    root 2818 0.0 0.1 3824 1116 ? Ss 19:46 0:00
    /usr/sbin/sshd
    xxxx 3245 0.0 0.0 2160 776 pts/2 R+ 20:42 0:00 egrep sshd



  9. Re: Slackware 12.0 and ssh

    Jean-Marc DREZET :

    > Protocol mismatch.
    > Connection closed by foreign host.


    Maybe there crept in loss of sync with the files in the
    <~/.ssh>-directories? If you have access to all the machines, you may just
    delete those directories (while sshd is stopped), at the same time on all
    machines which are to be connected. Encryption keys should be freshly
    rebuilt with next connect. (Maybe this is not a good idea for a machine,
    which is in the middle of a lot of 'known hosts' ).

  10. Re: Slackware 12.0 and ssh

    On Tue, 10 Jul 2007 20:44:20 +0200, jmdr wrote:

    > J. Sommers wrote:
    >> On Tue, 10 Jul 2007 19:56:30 +0200, Jean-Marc DREZET wrote:
    >>
    >>
    >>> J. Sommers wrote:
    >>>
    >>>> What are you getting if from an external machine you telnet to
    >>>> port 22 in your laptop?
    >>>>
    >>>>
    >>>>
    >>>>
    >>> going other_computer--->laptop I get :
    >>>
    >>> Trying 192.168.1.105...
    >>> Connected to 192.168.1.105.
    >>> Escape character is '^]'.
    >>>
    >>> and then nothing happens
    >>>
    >>>

    >> Well, as you can see, no ssh daemon is listening at port 22 in
    >> your laptop. Otherwise you would be getting a message like the one
    >> below, when you telnet to port 22 on your other computer.
    >>
    >> If at the command line in your laptop you type
    >>
    >> ps awux | egrep sshd
    >>
    >> what is it that you get? In my box I get
    >>
    >>
    >> root 2499 0.0 0.0 3688 1068 ? Ss Jul05 0:00 /usr/
    >> sbin/sshd
    >> xxx 6312 0.0 0.0 1672 392 pts/12 R+ 11:30 0:00 egrep
    >> sshd
    >>
    >>
    >>
    >>
    >>

    > I get this :
    >
    > root 2818 0.0 0.1 3824 1116 ? Ss 19:46 0:00
    > /usr/sbin/sshd
    > xxxx 3245 0.0 0.0 2160 776 pts/2 R+ 20:42 0:00 egrep
    > sshd


    OK, you do have an ssh daemon. But, is it listening on port 22?
    What do you have in /etc/ssh/sshd_config in that respect?




  11. Re: Slackware 12.0 and ssh

    jmdr wrote:
    > J. Sommers wrote:
    >> On Tue, 10 Jul 2007 19:56:30 +0200, Jean-Marc DREZET wrote:
    >>
    >>
    >>> J. Sommers wrote:
    >>>
    >>>> What are you getting if from an external machine you telnet to
    >>>> port 22 in your laptop?
    >>>>
    >>>>
    >>>>
    >>>>
    >>> going other_computer--->laptop I get :
    >>>
    >>> Trying 192.168.1.105...
    >>> Connected to 192.168.1.105.
    >>> Escape character is '^]'.
    >>>
    >>> and then nothing happens
    >>>

    >>
    >> Well, as you can see, no ssh daemon is listening at port 22 in
    >> your laptop. Otherwise you would be getting a message like the one below,
    >> when you telnet to port 22 on your other computer.
    >>
    >> If at the command line in your laptop you type
    >>
    >> ps awux | egrep sshd
    >>
    >> what is it that you get? In my box I get
    >>
    >>
    >> root 2499 0.0 0.0 3688 1068 ? Ss Jul05 0:00 /usr/
    >> sbin/sshd
    >> xxx 6312 0.0 0.0 1672 392 pts/12 R+ 11:30 0:00 egrep
    >> sshd
    >>
    >>
    >>
    >>

    >
    > I get this :
    >
    > root 2818 0.0 0.1 3824 1116 ? Ss 19:46 0:00
    > /usr/sbin/sshd
    > xxxx 3245 0.0 0.0 2160 776 pts/2 R+ 20:42 0:00 egrep sshd
    >


    To know if you have something that listen the port 22, type the
    following in your laptop:
    netstat -an | grep LISTEN | grep 22

    you should see something like:

    tcp 0 0 *.22 *.* LISTEN

    and (if you use inet6)

    tcp6 0 0 *.22 *.* LISTEN

    --
    Martin

  12. Problem solved

    I have just added in my script :

    route add -net 192.168.1.0 netmask 255.255.255.0 dev eth1

    Thank you for the answers.



+ Reply to Thread