作業環境
- 型番:SRX100H2
- バージョン:12.1X44-D45
root パスワードの設定
root パスワードの設定は、以下のコマンドを実行して対話的に設定します。
set system root-authentication plain-text-password
[edit]
root# set system root-authentication plain-text-password
New password:
Retype new password:
設定したパスワードはコンフィグ上では暗号化されて表示されます。
root> show configuration | display set | match root
set system root-authentication encrypted-password "$1$xeVYrSDn$r3BMhDVdRuyqb8WEhLEae0"
暗号化済みのパスワードを使用して設定する場合は以下の様にコマンド1行で設定可能です。
root# set system root-authentication encrypted-password "$1$xeVYrSDn$r3BMhDVdRuyqb8WEhLEae0"
root での SSH/TELNET ログインを拒否する
以下設定を行うと root でのSSH/TELNET ログインを拒否することができます。
set system services ssh root-login deny
[edit]
root# set system services ssh root-login deny
ホスト名の設定
set system host-name <ホスト名>
[edit]
root# set system host-name SRX
[edit]
root# commit
commit complete
[edit]
root@SRX#
ホスト名設定後、上のようにプロンプトにホスト名が表示されます。
参考資料
Protecting Network Security by Configuring the Root Password - TechLibrary - Juniper Networks
ACX Series,M Series,MX Series,T Series,PTX Series. Configuring the root password on your Junos OS-enabled router helps prevent unauthorized users from making ch...
Configuring the Hostname of a Router or Switch by Using a Configuration Group - TechLibrary - Juniper Networks
QFX Series,EX Series,M Series,MX Series,T Series,PTX Series. The hostname of a device is its identification. A network device must have its identity established...
―――――――――――――