ServersMan@VPSを試してみた
DTI、ワンコイン(490円)から利用できるVPS
というこて早速試してみた。
4/2に申し込みを行ったのですが、予想以上の申し込み数で〜ということで
今日の13時にやっと使えるようになりました。
早速メールで受け取ったVPSサーバ情報をもとにログイン確認。
ぼくが契約したのは一番安いお手軽プランの「ServersMan@VPS Entry」
月額利用料490円
OS CentOS 5
メモリ256MB
ストレージ 10GB
十分でしょう。
perlもはいってます
$ perl -v This is perl, v5.8.8 built for i386-linux-thread-multi Copyright 1987-2006, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page.
とりあえずログインできたから満足ですが、認証部分だけ設定しておいた。
これからなにしようかなー。
ユーザwajiを作成
# useradd waji # passwd waji Changing password for user waji. New UNIX password: Retype new UNIX password: passwd: all authentication tokens updated successfully.
ユーザを管理者グループに設定
# usermod -G wheel waji # vi /etc/pam.d/su 編集してコメントをはずす #auth required pam_wheel.so use_uid ↓ auth required pam_wheel.so use_uid
鍵認証
rootからログアウトして、wajiでログインしなおす
$ pwd $ mkdir .ssh $ chmod 700 .ssh/ $ vi .ssh/authorized_keys 自分の公開鍵を貼り付ける $ chmod 600 .ssh/authorized_keys $ exit
ログアウトして、鍵認証でログインしなおす
$ su - Password: # vi /etc/ssh/sshd_config PermitRootLogin no rootでのログインを禁止 PasswordAuthentication no パスワードでのログインを禁止 PermitEmptyPasswords no パスワードなしでのログインを禁止 # /etc/rc.d/init.d/sshd reload Reloading sshd: [ OK ]