玄箱 Kuro Box Gentoo Kuro Box Gentoo
Help for users running Gentoo on the Kuro Box.
Home  |  About the Site  |  Contact Us

 

 

Installing Gentoo Beta 1 on the Kuro Box
<<  Return to table of contents


10. Configuring and Testing SSH

10. a. Launching the SSH service

Ok, now, let's see if SSH works. It has already been installed as part of the base system. Its default configuration is quite permissive, and allows remote root login by password. This is not an ultra-secure setup, but in a first time we will keep it as-is, for simplicity.

We will launch the SSH service. This is not really clean, and you will see various warnings. But we don't really care, that should be enough to ensure that we can connect to the box once we have rebooted:

Starting SSH
KURO-BOX-EM etc # /etc/init.d/sshd start
/sbin/runscript.sh: line 32: /var/lib/init.d/softlevel: No such file or directory
/sbin/runscript.sh: line 32: /var/lib/init.d/softlevel: No such file or directory
* Bringing lo up... [ ok ]

* Generating Hostkey...
Generating public/private rsa1 key pair.
Your identification has been saved in /etc/ssh/ssh_host_key.
Your public key has been saved in /etc/ssh/ssh_host_key.pub.
The key fingerprint is:
XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX root@KURO-BOX-EM
* Generating DSA-Hostkey...
Generating public/private dsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_dsa_key.
Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub.
The key fingerprint is:
XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX root@KURO-BOX-EM
* Generating RSA-Hostkey...
Generating public/private rsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_rsa_key.
Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub.
The key fingerprint is:
XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX root@KURO-BOX-EM
* Starting sshd... [ ok ]
Notes:

10. b. Making a test login via SSH

From your workstation, open a new terminal and try to connect via SSH:

THIS SECTION IS UNFINISHED

% ssh root@192.168.1.106
The authenticity of host '192.168.1.106 (192.168.1.106)' can't be established.
RSA key fingerprint is 22:3e:06:6c:89:ee:6f:77:3b:13:76:f8:b8:a6:b0:b1.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.106' (RSA) to the list of known hosts.
Password:
KURO-BOX-EM root #

Ok, that works, so close the connection (the SSH one, not the telnet one):

Close the SSH session
KURO-BOX-EM root # exit
logout
Notes:

10. c. Setting SSH to start at boot

Finally, shut down the SSH service, and add it to the default runlevel:

XXX
KURO-BOX-EM etc # /etc/init.d/sshd stop
KURO-BOX-EM etc # rc-update add sshd default
* sshd added to runlevel default
* Caching service dependencies...
* rc-update complete.
Notes:

 


<<  Return to table of contents