Find the answer to your Linux question:
Results 1 to 4 of 4
I have 2 pc's networked at my home. Both are running Debian 3.1 and they are connected to internet through a switch and the switch is connected to ADSL modem. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie exploder's Avatar
    Join Date
    Jun 2005
    Location
    127.0.0.1
    Posts
    164

    How to login to local network through SSH?


    I have 2 pc's networked at my home. Both are running Debian 3.1 and they are connected to internet through a switch and the switch is connected to ADSL modem.

    Inorder for me to login to first pc from second pc-what are the files I have to edit in first pc?

    I vaguely know that I have to edit the /etc/hosts.allow file in fiirst pc to allow the second pc to login to first. What is the exact format I have to add in /etc/hosts.allow for the second pc to login into first through SSH?
    Registered Linux User#394486

  2. #2
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    The only files I remember editing with ssh was the ssh config file @ /etc/ssh/ssh_config.

    and then
    Code:
    ssh foo:192.168.0.3
    (foo being the user, and 192.168.0.3 being the IP of the first box). If you need the hosts.allow reading the manpage (man hosts.allow) will tell you to put the IP of the computer which is connecting.
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  3. #3
    Linux Newbie exploder's Avatar
    Join Date
    Jun 2005
    Location
    127.0.0.1
    Posts
    164
    I figured it out... what I have done is added the host names in both of the pc's in /etc/hosts
    and >ssh -l username ipaddress

    After that it asks for password and all set to go.

    Thank you for the help Dylunio
    Registered Linux User#394486

  4. #4
    Linux Enthusiast
    Join Date
    Aug 2005
    Location
    Hell
    Posts
    514
    or "ssh username@ipaddress"

Posting Permissions

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