注意:如果配置了免密碼登錄后,還是需要輸入密碼,需要在服務(wù)器端設(shè)置文件權(quán)限。chmod 755 ~chmod 755 ~/.sshchmod 644 ~/.ssh/authorized_keys