1. 程式人生 > >解決SecureCRT無法用非root賬號登入ssh

解決SecureCRT無法用非root賬號登入ssh

連結失敗,提示這個:
---------------------------SecureCRT---------------------------連線到會話192.168.1.100失敗:The server has disconnected with an error.Server message reads:

A protocol error occurred.Change of username or service not allowed:(root,ssh-connection)->(zoujiaqing,ssh-connection)---------------------------確定---------------------------

這是因為SecureCRT設定中的使用者名稱和你登入時候輸入的使用者名稱不相符,在這裡改一下就可以:

選項->會話選項->連線-> SSH2 ->使用者名稱

修改後登入正常,這樣可以禁用伺服器的ROOT登入了(為了安全)。