Results 1 to 4 of 4

Thread: SSHd and Webmin

  1. #1
    Join Date
    Dec 2012
    Beans
    3

    Question SSHd and Webmin

    So, I have access to my home server right now with Webmin but what I really want is to set up SSH and I'm getting errors. FYI, I'm doing this remotely and am not sure if it is even possible. Just so you all know, I'm pretty new at this am am trying to set up a remote server at home.

    I think I'm having problems with SSHD on my server.

    In Webmin I go to Webmin->webmin configuration->webmin modules->
    then click on the radial button [Standard module from www.webmin.com] and select "sshd" then hit [install module].

    it does it's thing and finally says:
    "SSH Server in /usr/share/webmin/sshd (1304 kB) under category Servers"
    This looks good so far.

    Then I go to Servers->SSH Server and I get the message
    "The SSH server program /usr/sbin/sshd was not found on your system. Maybe SSHD is not installed, or your module configuration is incorrect."

    I click on the "module configuration" link and this is what is asked for:

    Full path to sshd program

    Full path to sshd config file

    Full path to ssh client config file

    Full path to sshd PID file
    None
    Command to start sshd Just run server
    Command to apply sshd configuration
    Just send HUP signal
    Command to stop sshd Just kill process
    Full path to ssh-keygen program SSH server version Detect automatically


    Can any of you help me put the correct settings into this page? Do I have to open ports in my router (ex: port 22)? Or does webmin handle this somehow?

    Thanks in advance. I'm definitely a noob.

    -P

  2. #2
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,607
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: SSHd and Webmin

    You should have installed the OpenSSH server task when installing the server in the first place. I am not sure if you can do that with Webmin or not. I would consider forgetting about webmin, install openssh on the server and use it for administration.

    If you are trying to access it from outside (over the internet), regardless how you enabled SSH, the router will have to forward port 22 to the private IP of the server. Note that you might start to get attacks as soon as you open the port, so be careful.

    If you can work on the server directly (not remotely), you can add openssh easily with:
    sudo apt-get install openssh-server
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  3. #3
    Join Date
    Dec 2012
    Beans
    3

    Re: SSHd and Webmin

    Okay, so I deleted Webmin because I'm learning it sucks and messes everything up. I realized Webmin was my problem and was messing with some config files.

    I have OpenSSH installed and I could login remotely so I know my router is working. NOW, I'm trying to setup SSH so it's more secure with RSA keys. My problem is I encrypted my hard drive when I setup Ubuntu and I read here in the "Troubleshooting" section that my .ssh/authorized keys file is inaccessible remotely with SSH. My question is that the documentation says I need to create a directory with 755 permissions and the authorized_keys file with 644 permissions.

    If I create this folder and file /etc/ssh/%u/authorized_keys, then how do I set permissions on that file/folder? I assume these are read/write/execute permissions, correct?

    Oh, and another problem was, which I assume it's the same problem, is when I SSH'd in without keys, I couldn't replace a simple text file.

    Any help would be much appreciated, and thanks in advance.

  4. #4
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,607
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: SSHd and Webmin

    For folder/file permissions:
    sudo chmod 755 /path/foldername
    sudo chmod 644 /path/folder/filename

    As for replacing the text file, it depends where was it and who was the owner (has permissions to write). Don't forget that root login is disabled by default, you probably entered as yourself over SSH. If a file is owned by root and other users don't have write permission, unless you use sudo you can't replace it. It also applies to system files of course.

    If you used sudo you should have rights to replace it.

    I don't use encryption so I don't know if it had something to do with it.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

Tags for this Thread

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
  •