Disable Direct Root Login and User Access via SSH to Server rootのログインとユーザーのアクセスを無効に直接サーバーにssh経由で
Everybody knows, including hackers and attackers that all Linux and UNIX flavored systems come with a all powerful root user account, which once get compromised, mean all hell breaks loose.誰もが知って、ハッカーや攻撃者を含め、すべてのLinuxおよびUNIX風味のシステムには、ユーザーアカウントのすべての強力なルートを一度に妥協した場合、すべての地獄の区切りを意味ゆるいです。 So it’sa good security practice to disable the ability for root user to able to login and gain access to the server system via SSH directly (of course, the system must have disabled FTP access).これは良いので安全保障の練習を無効にするに能力をrootユーザにログインできるようにシステムのサーバーにアクセスするとssh経由で直接(もちろん、システムのFTPアクセス無効になっている必要があります) 。 After disabling direct root SSH remote login, the chance for the brute force hacking to success is greatly reduced.直接のルートSSHのリモートログインを無効にした後、ハッキングのチャンスを成功へのブルートフォースは大幅に減少します。
To turn off and disable direct root SSH login, follow this simple tutorial:直接のルートを無効にするとのSSHログインを無効には、次のような簡単なチュートリアル:
IMPORTANT: Make sure you have another account (preferably belongs to wheel user group too) which is able to login via SSH remotely, and able to SU to root user account.重要:ことを確認して、別のアカウント(できればホイールのユーザグループに属しても)これはssh経由でリモートログインできるようにし、ユーザアカウントからrootにsuできるようにします。 Else you risk been locked out from your server.他のリスクをしているサーバーからロックアウトされています。
- SSH into server and login as root.サーバーとのSSHには、 rootとしてログインします。
- In command shell, use pico or vi to edit sshd_config file by typing one of the following commands:コマンドシェルを使うと、ピコやvi sshd_configファイルを編集するには、次の1つのコマンドを入力:
pico /etc/ssh/sshd_configピコの/ etc / ssh / sshd_configに
vi /etc/ssh/sshd_config六の/ etc / ssh / sshd_configに - Scroll down the SSH server configuration file and locate a line like below:下にスクロールし、 SSHサーバの設定ファイルの位置を確認すると以下のような行:
#PermitRootLogin yes # permitrootloginはい
- Uncomment the line by removing the hash symbol (#), and then change the “yes” to “no”.のコメントを外してラインを取り外すことによって、ハッシュ記号( # ) 、と入力し、変更して"はい"を" no "です。 The final line should look like below:下の最後の行は次のように:
PermitRootLogin no permitrootloginない
- Save the config file. configファイルを保存しています。 In pico, press Ctrl-o, follow by Ctrl-x.でピコ、プレスctrl - Oでは、以下をctrl - Xになります。 In vi, type :wq and press Enter. viでのタイプ: wqと、 Enterキーを押します。
- Restart SSH server by typing the following command in command line, and press Enter: SSHサーバの再起動をコマンドラインで次のコマンドを入力して、 Enterキーを押します:
/etc/rc.d/init.d/sshd restart /等/ rc.d / init.dに/はsshdを再起動
- Logout from SSH connection. ssh接続からログアウトします。 Try to login as root, it should fail with Access denied error.は、 rootとしてログインしようと、それは失敗してアクセスが拒否されましたエラーが発生します。 To access root account, login with your own user name and password, and then SU to root. rootアカウントへのアクセス、ログインしてください自分のユーザー名とパスワードを入力し、 rootにsuします。
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要 :これは、機械翻訳ページで提供"現状有姿"を保証します。 Machine translation may be difficult to understand.機械翻訳を理解するのは難しいかもしれません。 Please refer toを参照してください original English articleオリジナルの英語記事索引 whenever possible.いつ可能です。
Share and contribute or get technical support and help atを共有して貢献や技術サポートとヘルプを得る My Digital Life Forums 私のデジタルライフフォーラム .です。
Related Articles関連記事
- How to Get Linux Server Sends Email Alert on Root Login Linuxサーバに送信する方法を電子メール警告を取得rootログイン
- Disable and Turn Off Telnet in Linux LinuxのTelnetを無効にしたり、無効にする
- Cannot FTP to Web Host or Server running cPanel/WHM FTPを使用することはできません実行しているサーバーのホストまたはウェブcpanel / whm
- cPanel Invalid License File After Changing Hostname Error cpanel無効なライセンスファイルのホスト名を変更した後エラーが発生
- Restore Full Backup or cpmove File in cPanel Web Host完全なファイルをバックアップまたは復元cpanelウェブホストcpmove
- Using phpMyAdmin for Effective MySQL Management in Windows XP MySQLの管理を効果的に使用してphpMyAdminのでは、 Windows XP
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 3 FreeBSDの6.0をインストールするWebサーバーのApache 2.2 、 MySQL 5.0以降およびPHP 5 -パート3
- Change and Reset MySQL root Password MySQLのrootのパスワードを変更し、リセット
- How to Check if Telnet Is Running on a Server telnetのかどうかを確認する方法をサーバー上で実行され
- Check and Optimize MySQL Database Automatically with Crontab/Cron MySQLデータベースの最適化を自動的にチェックのcrontab / cronの












