CentOS SSH密鑰登錄改成密碼登錄 (Conoha)

一、檢查安裝系統時是否已經安裝SSH服務端軟件包:   rpm -qa|grep openssh 服務器

若顯示結果中包含openssh-server-*,則說明已經安裝,直接啓動   sshd服務就能夠了(service sshd start).(其中*的內容是該包的版本,通常爲3.5p1-6)ssh

二、netstat -a | more看有沒正常啓動tcp

若是出現:ide

tcp   0      0 *:ssh         *:*         LISTENspa

就說明正常啓動了rest



vi /etc/ssh/sshd_configorm


  1. 2.設置爲密碼登錄方式server

    查找it

    PermitRootLogin yesio

    刪除前面的#註釋

     

    查找

    PasswordAuthentication no

    改成

    PasswordAuthentication yes

     

    保存

  2. 4

    3.重啓ssh服務或重啓服務器

    service sshd restart

相關文章
相關標籤/搜索