Jack Posted July 19 Share Posted July 19 (edited) ------------------------------------------------------------- DD Debian 12完成後,SSH無法連入,可能網路卡無法配置? ------------------------------------------------------------- 這需要主機商有提供noVNC,可藉由noVNC並用root帳號登入 DD完成後,無法SSH登入,如果是IP設置跑掉的情況,要自己修改靜態IP 如果DD前沒記下,只能Reinstall後,記下自己的VPS IP配置,再DD一次 Debian網路卡配置在 /etc/network/interfaces vi /etc/network/interfaces 這些設置參考用,每一家主機商的配置都不一樣 # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 47.1.1.18 gateway 47.1.1.255 netmask 255.255.255.0 dns-nameservers 8.8.8.8 8.8.4.4 ESC儲存並離開 :wq 重開機 reboot 查看公網IP有無設置上 ip addr ----------------- 關閉IPv6 ----------------- DD之後,好像IPv6跑出來了,還是關閉IPv6 關閉IPv6,修改 vi /etc/sysctl.conf 底下加入 net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 ESC儲存並離開 :wq 重開機 reboot 再次加載/etc/sysctl.conf的設置 sysctl -p Edited July 20 by Jack Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now