Redirected from Deki Wiki/FAQ/Configuration/How do I...Enable SSH?
1 of 1 found this page helpful

Enabling root access via SSH

    SSH, or Secure Shell, is a system for allowing remote access to a computer. 

    The MindTouch VM comes with SSH enabled by default, but there is only one user (root) and root is not permitted to log in.

    Less secure method

    1. Open the VMware console
    2. Log in as 'root' with the root password (default 'password')
    3. Change the root password (type 'passwd')
    4. Type nano /etc/ssh/sshd_config
      Scroll down until you find PermitRootLogin no and change it to read PermitRootLogin yes.
      Hit Control-X to exit and "Y" to save
    5. Reload the SSH server config: type /etc/init.d/ssh reload

    More secure method

    1. Log in as above.
    2. Create a limited user account (by typing adduser username)
    3. (optionally) Allow that user to run root commands using sudo
    4. SSH in as that user and become root using su - or sudo -s -H.

    Even more secure method

    SSH supports logins with passwords, or with a "SSH key" - a pair of encryption files where one is kept public, and one is sent to the servers you wish to log into. 

    Read about how to create SSH keys on Linux or Windows.

    Logging in to the server

    An excellent Windows program (or client) for accessing a SSH server is PuTTY.  Mac and Linux machines have ssh built in.

    Troubleshooting

    For either method, if your server has a firewall enabled, you may have to modify your rules to allow access using TCP port 22.

    Was this page helpful?
    Tag page
    Viewing 3 of 3 comments: view all
    Note that the above method is opening a path for people to get onto your system, so, folks might want to examine sshd_config a bit more, and look into ssh keys and such to make the ssh access secure.
    Posted 00:46, 22 Nov 2007
    Note for VM:

    After configure SSL secure site for VM, you may see Apache caught SIGTERM, then restarted automatically, every 5 minites.

    This is caused by "checkdeki" cron job, so you can commenting this out in /etc/crontab

    */5 * * * * root /usr/bin/checkdeki

    See bug report mentioned below for more infomation.

    0004421: Apache restarts every 5 minites in HTTPS configuration Deki VM
    http://bugs.developer.mindtouch.com/view.php?id=4421 edited 14:25, 8 Sep 2008
    Posted 20:38, 5 Sep 2008
    In Minneopa 9.08, the VM has a user "wikiadmin" which can be used to login via SSH, it's not necessary to create a new user.
    Posted 20:51, 25 Oct 2009
    Viewing 3 of 3 comments: view all
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by