Ruijie#configure terminal
Ruijie(config)#enable service ssh-server ------>开启SSH服务,默认关闭
Ruijie(config)#ip ssh version 2 ------>默认1.99版本,设置为版本2Ruijie
步骤二 -- 添加登录的用户名和密码
Ruijie(config)#username admin password ruijie@123
步骤三 -- 生成加密密钥
Ruijie(config)#crypto key generate rsa ------>加密方式有两种:DSA和RSA(这里选择RSA)
Choose the size of the key modulus in the range of 360 to 2048 for your Signature Keys. Choosing a key modulus greater than 512 may take a few minutes.
How many bits in the modulus [512]: ------>指定加密的位数即加密强度,默认是512位(直接回车)
% Generating 512 bit RSA1 keys ...[ok]
% Generating 512 bit RSA keys ...[ok]