Results 1 to 4 of 4

Thread: How do I setup an SSH server

  1. #1
    Join Date
    Jun 2010
    Beans
    98
    Distro
    Ubuntu 10.04 Lucid Lynx

    How do I setup an SSH server

    I have an old computer that I rarely use and would like to turn it into an SSH server. I still use it occasionally, so I want to keep the desktop version of Ubuntu on it. Based on what I've read, all I have to do is install openSSH and, because I'm behind a router, I will need to forward port 22. Is that correct?

    Also, on most dedicated servers the server IP address is static, but I'm guessing that the addresses on this computer are dynamic. Is there anyway to change that? And if anyone connects remotely with SSH, I'm assuming they'll have access to my entire computer. Is there a way to restrict access to a single folder? Sorry if these questions sound weird, I've never attempted anything like this before.

  2. #2
    Join Date
    Oct 2007
    Location
    outside Washington DC
    Beans
    93
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: How do I setup an SSH server

    all you need are to install sshd, using Synaptic, apt-get, etc.

    If the computer is inside your house, using DHCP, you just need to bind a fixed IP address to the MAC address of its NIC.

    Most consumer routers can do this easily.

    Yes, you will need access to port 22 into the machine from where ever you want to come from.

  3. #3
    Join Date
    Aug 2006
    Beans
    13,354
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: How do I setup an SSH server

    Quote Originally Posted by JohnElway View Post
    I have an old computer that I rarely use and would like to turn it into an SSH server. I still use it occasionally, so I want to keep the desktop version of Ubuntu on it. Based on what I've read, all I have to do is install openSSH and, because I'm behind a router, I will need to forward port 22. Is that correct?
    Yes, that's about it. I'd recommend changing the default port to something else, otherwise you get a lot of random login attempts. 2222, 2121, 2323, etc, any of these will do, the config file is /etc/ssh/sshd_config.

    Also, on most dedicated servers the server IP address is static, but I'm guessing that the addresses on this computer are dynamic. Is there anyway to change that? And if anyone connects remotely with SSH, I'm assuming they'll have access to my entire computer. Is there a way to restrict access to a single folder? Sorry if these questions sound weird, I've never attempted anything like this before.
    It's advisable to make sure both internal and external IPs are static. The former can be configured with the Network Manager, and the latter with serices like http://www.dyndns.com/ or http://www.no-ip.com/.
    As for restricting to a folder, connect as non-privileged user and you'll be restricted to your home folder.

  4. #4
    Join Date
    Sep 2008
    Beans
    3

    Re: How do I setup an SSH server

    I set up an ssh server today on my old dell box. I just followed this guide, everything worked beautifully.

    http://net.tutsplus.com/tutorials/ph...rver-for-free/

Bookmarks

Posting Permissions

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