您好,登錄后才能下訂單哦!
1、打開terminal窗口,切換到bash shell
2、修改sshd_config
PremitRootLogin yes
3、重啟ssh服務
Svcadm restart ssh
4、查看機器ip
Ifconfig -a
5、ssh登錄
root@ubuntu-T:~# ssh root@172.16.251.130 The authenticity of host '172.16.251.130 (172.16.251.130)' can't be established. RSA key fingerprint is SHA256:7Q2PlGyu4r7R3dmKlvsZMPoJP5Kp1sNrtYyXAWzpAWU. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '172.16.251.130' (RSA) to the list of known hosts. Password: Last login: Tue Jul 31 14:32:19 2018 Sun Microsystems Inc. SunOS 5.10 Generic January 2005 # bash bash-3.00# ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 e1000g0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2 inet 172.16.251.130 netmask ffffff00 broadcast 172.16.251.255 ether 0:c:29:44:3b:b9 bash-3.00#
免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。