Privacy guaranteed - Your email is not shared with anyone.

Welcome to Glock Forum at

Why should YOU join our forums?

  • Connect with other Glock Enthusiasts
  • Read up on the latest product reviews
  • Make new friends to go shooting with!
  • Becoming a member is FREE and EASY

Glock Talk is the #1 site to discuss the world’s most popular pistol, chat about firearms, accessories and more.

ssh and x windows

Discussion in 'Tech Talk' started by Linux3, Jul 20, 2011.

  1. Linux3


    Dec 31, 2008
    I didn't want to hijack IGF's other thread, well more than already done, so I started a new one.

    ssh and x windows. There is nothing better IMHO to manage multiple computers whether in the home or office.

    You need both the openssh-server and openssh-client. Openssh is an open implementation of Secure SHell. That is from one computer you can shell into another system. Open a terminal (shell) and type commands and with a *nix system things happen. Real men don't do windows. OK, now;

    linux3@45acp:~$ ssh linux3@9mm <enter>
    After entering my passwd I would be in effect 'sitting at 9mm'. I'm local on that system and I can do anything I have permission to do. Great for management and way, way faster than VNC.

    But it gets better.
    Before I ssh into 9mm

    linux3@45acp:~$ xhost 9mm <enter> ; I have now given 9mm permission to open the display on my system, 45acp.

    linux3@45acp:~$ ssh linux3@9mm <enter>
    OK, now I'm on 9mm right.
    linux3@9mm:~$ firefox & <enter>
    And now firefox will open and run on the display on 45acp but it's the configuration and such from my account on 9mm. Or whichever account you ssh'd into. It doesn't have to be you, you just need the username and passwd.

    You can run any gui from 9mm and have it appear on 45acp. You don't need to remote the whole desktop, just what you want / need.

    This is the joy of the client/server program that is xwindows and life would not be as sweet without it.

    When my mother calls and says her printer isn't working correctly I can ssh into her system and run system-configuration-printer and see what she's messed with now. I can run the display manager or anything and check the system out.

    Fast, fast.

    Want to move some files between systems?
    Open a shell and
    linux3@45acp:~$ sftp linux3@9mm <enter>
    The simple 'get' and 'put' commands move files around.

    I can manage 30 desktop systems by opening 30 shells, one per, on my desktop and then a simple cut and paste of commands into the shells and I've upgraded or whatever on all of them.
  2. filthy infidel

    filthy infidel 100% Infidel

    Apr 24, 2007
    North Carolina

  3. IndyGunFreak


    Jan 26, 2001
    I've never really understood SSH..

    I don't see anywhere, where you've told it where linux3@9mm is. I'm assuming you'd need an IP address, or something.

  4. Linux3


    Dec 31, 2008
    Correct. I assign long term leases to my home network and at my job the IP addresses are fixed.
    You can assign fixed IP addresses to your small network but I find long leases easier and basically I'm lazy.

    So IP addresses go in /etc/hosts
    root@45acp:~$ cat /etc/hosts 45acp localhost.localdomain localhost
    ::1 45acp localhost6.localdomain6 localhost6 45acp 9mm 380acp

    In the case of a DHCP network and at work where there are lots of systems then you edit
    root@45acp:~$ cat /etc/resolv.conf
    So my nameserver knows all the systems in my home network and knows a nameserver above itself. In the case of a home network my server would ask Time Warner for any IP addresses outside of it's scope.

    Lets say at work the network I manage is foo and I work for company bar.
    Then my system name would be; 45acp
    Full name simple name

    I would have a nameserver for the subnet 'foo'.
    If it could not resolve it would look at 'bar', the company nameserver and of course it would look at a .com server.