システムの更新とSSHポートの変更

前回さくらVPSにSSHでの接続あれこれを設定したので、続き。

システムの更新

システムの更新はyumを使用して行う。WindowsUpdateなイメージ。SSHで接続しルートになるか、「sudo yum update」。サイズの確認で「y」を押すとDLとインストールが始まる。

[hogehoge@sakura ~]# yum update
Loaded plugins: fastestmirror
Determining fastest mirrors
...(中略)
Install       2 Package(s)
Upgrade       2 Package(s)

Total download size: 26 M
Is this ok [y/N]: y
...(以下省略)

途中で、GPGキーのインポートもでてくるので、それも実行。GPGキーってなんだろうって思ったら、yumでDLするパッケージが改竄されていないかチェックするものらしい。

warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897
updates/gpgkey                                           | 1.5 kB     00:00
Importing GPG key 0xE8562897 "CentOS-5 Key (CentOS 5 Official Signing Key) " from /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
Is this ok [y/N]: y
...(以下省略)
SSHポートの変更

デフォルトは22番ポートなので、一応変更してみた。

[hogehoge@sakura ~]$ sudo vi /etc/ssh/sshd_config

viでコンフィグファイルを開いて、Portの所を修正。

Port 20000

修正したらSSHDを再起動。

[hogehoge@sakura ~] sudo /etc/rc.d/init.d/sshd restart
Stopping sshd:                                             [  OK  ]
Starting sshd:                                             [  OK  ]

参考サイト:
RSA 公開鍵認証
GPGキーインポートについて

次はApacheとかMySQLとかかな。

関連記事:

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

コメントを残す

XHTML: 次のタグを使用できます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>