Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 18
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Exclamation Remote shutdown?


    Hello Is there a possible way to shutdown another computer that is connected to my network.I don`t know the IP, is there a way to get the IP address too?Thanks

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,931
    Possible, if:
    - You have a list of MAC addresses of known machines and/or know which machine is which on arp level.
    - And you have a valid account on that "other computer".
    Another possibility might be to shutdown the port this "other computer" has on your switch.

    Basically you would list the arp cache and see what IP the other computer has.
    Another way of finding the IP is to watch for network traffic and try to match it to known PCs.

    May I ask, what the motivation is?
    You must always face the curtain with a bow.

  3. #3

    Ok

    I know the username,for example its X.

    I have 2 laptops and Im just trying to learn some stuff.

    Anyways.You said monitoring traffic,can you tell me more

  4. $spacer_open
    $spacer_close
  5. #4
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,931
    It depends on your actual network setup, what and how to do.

    Do you have control over the gateway and/or switch and/or router?
    For now I will assume, that the two laptops are connected over wifi to a soho accesspoint/router.
    If so, then I would suggest to login to that routerīs admin webinterface and look out for the network overview
    or connected wlan devices.

    If there are only two active leases on dhcp (yours and the other) then it shouldnt be too hard to guess the other one
    Once you have the IP, try to connect.
    The method o connecting depends on the capabilities and configuration of the other machine.
    Is it a windows/mac/linux?
    Is the appropiate daemon/service (ssh/vnc/remoteaccess/etc)
    Are remote logins allowed?
    Is there maybe a firewall blocking your access?
    You must always face the curtain with a bow.

  6. #5
    Both linux,should I use ssh?Everything is by default,nothing changed from the install.

  7. #6
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,931
    Make sure, the ssh server is installed and started on the other laptop.
    The package is called openssh-server.
    This should install it:
    Code:
    apt-get install openssh-server
    Then ssh into it with
    ssh X@IP_Address
    With X being the remote user and the IP address of that laptop.
    You must always face the curtain with a bow.

  8. #7
    Ok I got the IP,whats next?

  9. #8
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,931
    see post #6
    You must always face the curtain with a bow.

  10. #9

    Lol

    had to refresh the page.I got the mac address the Ip,but is there a way to shutdown the other laptop without openssh server in it?

  11. #10
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,931
    Without any remote login method (ssh/vnc/etc): no.

    You can maybe grant/revoke the network access this machine has on the router.
    You must always face the curtain with a bow.

Posting Permissions

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