- 工信部備案號 滇ICP備05000110號-1
- 滇公安備案 滇53010302000111
- 增值電信業務經營許可證 B1.B2-20181647、滇B1.B2-20190004
- 云南互聯網協會理事單位
- 安全聯盟認證網站身份V標記
- 域名注冊服務機構許可:滇D3-20230001
- 代理域名注冊服務機構:新網數碼
配置sshd服務 在服務器上修改/etc/ssh/sshd_config:
<!-- lang: shell -->
#禁止root登錄
PermitRootLogin no
#指定可以登錄的用戶
AllowUsers bob alice
StrictModes yes
#關閉密碼驗證
PasswordAuthentication no
#打開RSA驗證相關設置
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
#關閉 GSSAPI驗證
GSSAPIAuthentication no
重啟sshd服務
生成rsa-keypair 切換到允許ssh登錄的用戶賬戶執行如下執行如下命令:
<!-- lang: shell -->
#生成key-pair
ssh-keygen
cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
sudo chmod 600 ~/.ssh/authorized_keys
sudo chmod 700 ~/.ssh
restorecon -R -v ~/.ssh
復制剛剛生成的id_rsa文件到本地,一般命名為:server.pem
ssh -i server.pem username@server
售前咨詢
售后咨詢
備案咨詢
二維碼
TOP