openssh-server



ログインするためのsshdをインストールする。
root@ubuntu1:/ubuntu# chroot /ubuntu/
root@ubuntu1:/# apt-get install openssh-server

/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up libwrap0 (7.6.q-19) ...
Setting up tcpd (7.6.q-19) ...
Setting up libxau6 (1:1.0.6-1) ...
Setting up libxdmcp6 (1:1.0.3-2) ...
Setting up libxcb1 (1.6-1) ...
Setting up libx11-data (2:1.3.3-4) ...
Setting up libx11-6 (2:1.3.3-4) ...
Setting up libxext6 (2:1.1.2-1) ...
Setting up libxmuu1 (2:1.0.5-2) ...
Setting up openssh-server (1:5.5p1-6) ...
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Restarting OpenBSD Secure Shell server: sshd.
Setting up xauth (1:1.0.4-1) ...

ネットワークの設定。

root@ubuntu1:/# vi /etc/network/interfaces
root@ubuntu1:/# cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.10
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 192.168.1.1