linux下ssh無密碼 登陸root賬戶/非root賬戶

一、root賬戶登錄 1.客戶端生成密鑰對,包括公鑰、私鑰     ssh-keygen -t rsa 2.私鑰配置在本地,將公鑰發送給服務端     scp ~/.ssh/id_rsa.pub [email protected]:/~ 3.登錄服務器端,將客戶端的公鑰加入授權列表    ssh [email protected]   cat ~/id_rsa.pub >> ~/.ssh/auth
相關文章
相關標籤/搜索