![通过终端连接到远程机器的有线网络](https://linux22.com/image/1194747/%E9%80%9A%E8%BF%87%E7%BB%88%E7%AB%AF%E8%BF%9E%E6%8E%A5%E5%88%B0%E8%BF%9C%E7%A8%8B%E6%9C%BA%E5%99%A8%E7%9A%84%E6%9C%89%E7%BA%BF%E7%BD%91%E7%BB%9C.png)
我正在通过 AnyDesk 连接到办公室中的远程机器。这是一个商业网络,我必须在重启或更改密码后输入密码。PC 提示我输入密码。
由于公司的安全规定,我必须更改密码,并且我将失去连接,有没有办法编写 bash 脚本将电脑连接到互联网?
ip addr info
给出了以下输出;
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp42s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether d8:bb:c1:3d:d2:87 brd ff:ff:ff:ff:ff:ff
inet 10.20.8.187/16 brd 10.20.255.255 scope global dynamic noprefixroute enp42s0
valid_lft 48830sec preferred_lft 48830sec
inet6 fe80::b0d2:f718:1740:eed9/64 scope link noprefixroute
valid_lft forever preferred_lft forever
5: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 100
link/none
inet 172.17.0.114 peer 172.17.0.113/32 scope global tun0
valid_lft forever preferred_lft forever
inet6 fe80::1b:82b3:ee95:5818/64 scope link stable-privacy
valid_lft forever preferred_lft forever