内容へ移動
[[
✎ 初期設定
]]
ノウハウ集
現在位置:
トップページ
»
VPS
»
初期設定
文書の表示
最近の変更
サイトマップ
ログイン
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
======初期設定====== 参考) http://wiki.xsqi.net/index.php?%A5%B5%A1%BC%A5%D0%A1%BC%2FServersMan%40VPS =====root passwordを設定===== # passwd root =====user作成===== <code> # useradd -m -s /bin/bash -g users USERNAME # passwd USERNAME </code> =====デフォルトのエディタを設定===== <code> # update-alternatives --config editor </code> =====SSHセキュリティ設定===== ====sudo準備==== # visudo <code> USERNAME ALL=(ALL) ALL </code> # /etc/init.d/ssh restart # logout - 再loginしてsudoできるかテスト - ====rootでのssh==== # vi /etc/ssh/sshd_config <code> PermitRootLogin no PermitEmptyPasswords no AllowUsers vpuser </code> # /etc/init.d/ssh restart #再loginしてテスト ====SSH port変更==== # vi /etc/ssh/sshd_config <code> Port 12345 </code> # vi /etc/network/if-pre-up.d/iptables <code> #iptables -A INPUT -p tcp --dport ssh -m state --state NEW -j ACCEPT iptables -A INPUT -p tcp --dport 12130 -m state --state NEW -j ACCEPT </code> # sshd -t
文書の表示
以前のリビジョン
メディアマネージャー
文書の先頭へ