Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 16 of 16
it means the SSH daemon is running ( pid 2858 ) and is listening on all networks for SSH connections on TCP port 22....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353

    it means the SSH daemon is running ( pid 2858 ) and is listening on all networks for SSH connections on TCP port 22.
    Last edited by atreyu; 07-22-2011 at 04:33 PM.

  2. #12
    Just Joined!
    Join Date
    Jun 2010
    Posts
    24
    What i do if the server has router for connection with internet ???
    One client how must write the ssh ?

    He must put the external ip or combination with the internal for LAN?
    when i write ssh test@xxx.xxx.xxx.xxx i define only the external ip.

  3. #13
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    You need to explain more clearly what you are trying to do.

    If the SSH client on one PC is trying to access the SSH server on another PC and they are on the same LAN (e.g. 192.168.1.0/24), then you can just use the SSH server PC's LAN ip address (or hostname, if the client PC resolves it correctly).

    If however, you mean the SSH client PC is trying to access the SSH server PC remotely, via the Internet, then you need to set up port forwarding on the router that your SSH server is using. In the router's port configuration, either the SSH port itself ( 22 ), or more typically some other port will be redirected to the SSH server, let's say port 2022. Then the client would attach to it by connecting to the SSH server's external ip address (or some domain name you set up) using that particular port number, e.g.:
    Code:
    ssh -p 2022 test@xxx.xxx.xxx.xxx

  4. $spacer_open
    $spacer_close
  5. #14
    Just Joined!
    Join Date
    Jun 2010
    Posts
    24
    ok. thanks. This is that i was tried to learn.

    Therefore , my problem will be solved if i do port forwarding in a router.

  6. #15
    Just Joined!
    Join Date
    Jun 2010
    Posts
    24
    Is there any command which start the sshd automatically with the start of pc?

  7. #16
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,461
    Depends a bit on your linux distribution.
    On RedHat/CentOS/Fedora/Scientific Linux this is done by:
    Code:
    chkconfig sshd on:
    You must always face the curtain with a bow.

Page 2 of 2 FirstFirst 1 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •