Machine Learning Ubuntu 18.04 環境建置手札
重新安裝ssh server 1 2 3 sudo apt-get remove openssh-server sudo reboot sudo apt-get install openssh-server ssh允許使用root登入 1 2 sudo vim /etc/ssh/sshd_config # change "PermitRootLogin no" to "PermitRootLogin yes" ssh免密碼登入 建立ssh rsa key 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 [[email protected] ~]$ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/neil/.ssh/id_rsa): [Press enter key] Created directory '/home/neil/.ssh'. Enter passphrase (empty for no passphrase): [Press enter key] Enter same passphrase again: [Press enter key] Your identification has been saved in /home/neil/.ssh/id_rsa. Your public key has been saved in /home/neil/.ssh/id_rsa.pub. The key fingerprint is: 1f:ad:49:00:4a:d5:ab:99:b3:b0:f9:09:91:c4:ed:d2 [email protected] The key's randomart image is: +--[ RSA 2048]----+ | ..oooE.++| | o. o.. | | .. . | | o . . o| | S . . + | | . . . o| | . o o ..| | + + | | +. | +-----------------+ Create .ssh Directory on host server ...