インストール直後にすること 1

apt の設定ファイルから、参照先の CD-ROM を外す

$ su -
Password:
# less /etc/apt/sources.list
#
# deb cdrom:[Debian GNU/Linux 4.0 r4a _Etch_ - Official i386 NETINST Binary-1 20
080804-15:10]/ etch contrib main

deb cdrom:[Debian GNU/Linux 4.0 r4a _Etch_ - Official i386 NETINST Binary-1 200
80804-15:10]/ etch contrib main

deb http://sb.itc.u-tokyo.ac.jp/DEBIAN/ etch main
deb-src http://sb.itc.u-tokyo.ac.jp/DEBIAN/ etch main

deb http://security.debian.org/ etch/updates main contrib
deb-src http://security.debian.org/ etch/updates main contrib

# vim /etc/apt/sources.list
#
# deb cdrom:[Debian GNU/Linux 4.0 r4a _Etch_ - Official i386 NETINST Binary-1 20
080804-15:10]/ etch contrib main

# 下記の行をコメントして、参照先から外す
# deb cdrom:[Debian GNU/Linux 4.0 r4a _Etch_ - Official i386 NETINST Binary-1 200
80804-15:10]/ etch contrib main

deb http://sb.itc.u-tokyo.ac.jp/DEBIAN/ etch main
deb-src http://sb.itc.u-tokyo.ac.jp/DEBIAN/ etch main

deb http://security.debian.org/ etch/updates main contrib
deb-src http://security.debian.org/ etch/updates main contrib

apt を更新する

# apt-get update

ssh をインストールする

# apt-get install ssh

ssh の設定を行う

# vim /etc/ssh/sshd_config
# PermitRootLogin yes
PermitRootLogin no <- リモートから root でのログインを不許可にする

sshd の再起動を実施し、新しい設定を有効にする。

# /etc/init.d/ssh restart