QNX虛擬機開啓SSH服務的步驟


1)編輯sshd.conf文件。修改三處:

  A:Port 22;

  B:# HostKeys for protocol version 2

  HostKey /etc/ssh/ssh_host_rsa_key

  HostKey /etc/ssh/ssh_host_dsa_key

  C:PermitRootLogin yes

2)在Var目錄下新建/var/chroot/sshd文件

3)Chmod 744/var/chroot/sshd

4)Passwd root

5-1)#ssh-keygen -t dsa-f /etc/ssh/ssh_host_dsa_key

回車多次、直到執行完畢

5-2)#ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key

回車多次、直到執行完畢

6)#/usr/sbin/sshd

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章