Jump to content
View in the app

A better way to browse. Learn more.

PHP论坛人

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

DD Debian 13 完成後,SSH無法連線,可能網路卡沒有配置?

Featured Replies

DD Debian 13 完成後,SSH無法連線,可能網路卡沒有配置?

這需要主機商有提供noVNC控制台,可藉由noVNC控制台並用root帳號登入

如果是網路卡設置跑掉,要自己設置 靜態IP/固定IP

---------------------------------------------------------------------------

由於DD前沒記下IP,只好reinstall OS後,找出預設的IP,再重新DD一次

---------------------------------------------------------------------------

用 networkctl 查詢網路卡名稱

networkctl list

可以得知網路卡名稱 ens5

IDX LINK TYPE OPERATIONAL SETUP

1 lo loopback carrier unmanaged

2 ens5 ether routable configured

2 links listed.

03x.png

查詢網路卡IP設置,這三個指令都有效用

ip addr show ens5

networkctl status ens5

ip route

如果是內網IP、外網IP這兩個IP都有給的情況,在下面先設置 10.x.x.x 內網IP

建立 networkd 設定檔

vi /etc/systemd/network/10-ens5.network

將以下的內容複製並貼上

[Match]

Name=ens5

[Network]

Address=10.x.x.x

Gateway=10.x.255.253

DNS=1.1.1.1

DNS=8.8.8.8

:wq 儲存並離開

套用設定,開機啟動

systemctl enable systemd-networkd

systemctl restart systemd-networkd

重新載入

networkctl reload

重開機

reboot

這時候再來SSH登入,應該可以了

Edited by Jack

Create an account or sign in to comment

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.