静态ip连接ssh问题
debian吧
全部回复
仅看楼主
level 8
LONGAlter 楼主
大佬们,我按网上搜的教程设置静态ip后如果不是默认的那个ip都没办法连接ssh,而且默认的那个ip更换路由器后也无法连接,不知道是哪的问题,求大佬们帮帮忙。[泪]
2023年02月21日 05点02分 1
level 8
LONGAlter 楼主
/ec/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 enp2s0
allow-hotplug enp2s0
iface enp2s0 inet static
address 192 .168 .31.100
netmask 255.255.255 .0
gateway 192.168.31.1
2023年02月21日 05点02分 2
level 8
LONGAlter 楼主
这个ip就是默认ip,换别的ip就没办法连接ssh了
2023年02月21日 05点02分 3
level 1
设个主机名不香么?
为什么任何padavan路由的管理地址都是my.router
因为他的主机名就是my.router
你用这个思路整。
别老去记ip地址~~~~
2023年04月27日 16点04分 4
1