Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 18 of 18
No,I meant without enabling openssh server Make sure, the ssh server is installed and started on the other laptop....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Just Joined!
    Join Date
    Dec 2011
    Posts
    10

    No,I meant without enabling openssh server
    Make sure, the ssh server is installed and started on the other laptop.

  2. #12
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,380
    Again, you will need *some* way of loging into that laptop.
    ssh is the most obvious, but there are others also.
    You must always face the curtain with a bow.

  3. #13
    Just Joined!
    Join Date
    Dec 2011
    Posts
    10
    OK thanks,I will try.I gotta go to sleep now.Bye

  4. #14
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by Zetoox View Post
    I don`t know the IP, is there a way to get the IP address too?
    The nmap tool can help you with this. Don't run this on your corporate network or anything, but go for it on your own LAN. First you need the network info of the machine that you'll be running the command from. You can get it with ip tool:
    Code:
    ip a
    This will show the TCP configuration for all your network devices. Look for your eth0 device (or whatever is your network device name). For example, this bit of the output from my machine:
    Code:
    inet 192.168.1.6/24 brd 192.168.1.255 scope global eth0
    shows that my eth0 device has an ip address of 192.168.1.6 and a (CIDR-notation) subnet mask of 24 (or 255.255.255.0). Armed with this info, you can now run nmap:

    Code:
    nmap -n -sP 192.168.1.0/24
    Note that I changed the 6 in the fourth octet of the ip address to a 0 (to mean all ip addresses). The -n means don't do DNS resolution and the -sP means don't do anything further than a ping sweep (i.e., nmap is capable of doing much more than this...omit it to do a port scan). If you run the nmap command as root, you'll also get MAC addresses, which are handy for positively (sort of) identifying a machine.

    For more on nmap, nmap --help and man nmap.

  5. #15
    Just Joined!
    Join Date
    Dec 2011
    Posts
    10
    Code:
    nmap -n -sP 192.168.1.0/24
    
    Starting Nmap 5.21  at 2011-12-05 08:21 GMT
    Nmap done: 256 IP addresses (0 hosts up) scanned in 3.05 seconds
    Thats all I get,now How Can I see the IPs?
    Last edited by Zetoox; 12-05-2011 at 07:20 AM. Reason: Forgot to write some stuff.

  6. #16
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,380
    You scanned the wrong network:
    "0 hosts up"

    atreyu explained it step by step.
    May I suggest to follow the steps and not jump to the last one?

    These links might provide some background:
    IP address - Wikipedia, the free encyclopedia
    Classless Inter-Domain Routing - Wikipedia, the free encyclopedia
    You must always face the curtain with a bow.

  7. #17
    Just Joined!
    Join Date
    Dec 2011
    Posts
    10
    Ohh I get it now
    Code:
    nmap -n -sP 192.168.2.0/24
    
    Starting Nmap 5.21  at 2011-12-05 08:37 GMT
    Nmap scan report for 192.168.2.1
    Host is up (0.0063s latency).
    Nmap scan report for 192.168.2.4
    Host is up (0.00033s latency).
    Nmap done: 256 IP addresses (2 hosts up) scanned in 2.51 seconds
    anyways GTG

  8. #18
    Just Joined!
    Join Date
    Dec 2011
    Posts
    10
    Code:
    x ~ # ssh root@192.168.2.6
    ssh: connect to host 192.168.2.6 port 22: Connection refused
    Im not sure what to do,I tried to connect as user too,but doesnt work.Maybe like you said
    Make sure, the ssh server is installed and started on the other laptop.
    So how do I start it?

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
  •