Re: Starting SSH problem

From: David (david_at_lister.ch)
Date: 10/24/03

  • Next message: Stephen Liu: "Re: Starting SSH problem (partial solved)"
    To: Stephen Liu <satimis@icare.com.hk>, secureshell@securityfocus.com
    Date: Fri, 24 Oct 2003 16:57:54 -0500
    
    

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    In gentoo,

    if you look at the sshd script /etc/init.d/sshd

    depend() {
    need net
    }

    the sshd service is dependent on the net service

    it looks like maybe your network isnt starting up.
    maybe due to the removal of the network card?

    - -David

    On Thursday 23 October 2003 12:44, Stephen Liu wrote:
    > Hi all folks,
    >
    > Gentoo 1.4
    > openssh-3.6.1_p2
    > ==============
    >
    > Just join this list.
    >
    > I encountered problem in starting ssh
    >
    > # epm -qa | grep ssh
    > openssh-3.6.1_p2
    >
    > # ssh -X satimis@localhost
    > ssh: connect to host localhost port 22: Connection refused
    >
    > # /etc/init.d/sshd status
    > * status: stopped
    > # /etc/init.d/sshd start
    > * Bringing eth0 up...
    > * Failed to bring eth0 up
    >
    > * ERROR: Problem starting needed services
    > "sshd" was not started.
    >
    > (Remark: the denotation of NIC of this PC is eth1 because previously it
    > had 2 NICs, eth0 and eth1. I removed eth0 and the remaining NIC retains
    > eth1. The physical removal was made before intalling Gentoo 1.4 on this PC
    > about 4 days ago which is for testing purpose)
    >
    > netstat -nat
    > Active Internet connections (servers and established)
    > Proto Recv-Q Send-Q Local Address Foreign Address State
    > tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN
    >
    > # netstat -natp
    > Active Internet connections (servers and established)
    > Proto Recv-Q Send-Q Local Address Foreign Address State
    > PID/Program name
    > tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN
    > 2167/X
    >
    > # iptables -L
    > bash: iptables: command not found
    >
    > # epm -q iptables
    > package iptables is not installed
    >
    > # epm -q ipchains
    > package ipchains is not installed
    >
    > Both iptables and ipchains not installed.
    >
    > Kindly advise
    > 1) How to start ssh
    > 2) What tool shall I use to check port 22 not being firewalled off and
    > ssh is blocked
    >
    > Thanks in advance.
    >
    > B.R.
    > Stephen Liu
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

    iD8DBQE/maBiRBFnX32/BNkRAtcGAJ991pedM5OF7Il1hkSf8aj7fBFwMACgv/s4
    4LBMCIprheH6lkc2wc8aG2o=
    =b85U
    -----END PGP SIGNATURE-----


  • Next message: Stephen Liu: "Re: Starting SSH problem (partial solved)"