RG Nano
如何透過ssh連線
參考資訊:
1. recovery-mode-commands
步驟如下:
1. 掛載USB DISK
2. 在根目錄下新增一個空白的檔案,檔案名稱必須是usbnet
3. 重新開機後,就可以透過ssh連線(root:funkey)
$ sudo dmesg -c [54949.883106] rndis_host 2-1:1.0 enp0s20u1: unregister 'rndis_host' usb-0000:00:14.0-1, RNDIS device [54950.083308] userif-2: sent link down event. [54950.083312] userif-2: sent link up event. [54951.181415] usb 2-1: new high-speed USB device number 20 using xhci_hcd [54951.330016] usb 2-1: New USB device found, idVendor=1d6b, idProduct=0104, bcdDevice= 1.00 [54951.330020] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [54951.330022] usb 2-1: Product: FunKey S [54951.330023] usb 2-1: Manufacturer: FunKey [54951.330024] usb 2-1: SerialNumber: 12c000021509d3f2 [54951.332875] rndis_host 2-1:1.0 usb0: register 'rndis_host' at usb-0000:00:14.0-1, RNDIS device, 6e:70:7b:9b:99:af [54951.396348] rndis_host 2-1:1.0 enp0s20u1: renamed from usb0 [54951.430279] IPv6: ADDRCONF(NETDEV_UP): enp0s20u1: link is not ready $ sudo ifconfig enp0s20u1 169.254.137.100 netmask 255.255.255.0 $ ssh root@169.254.137.236 Restore saved volume Restore saved brightness Start frontend root@FunKey:~# cat /etc/*release* NAME="FunKey-OS" VERSION="2.3.0 (Zen Zebu)" ID=funkey ID_LIKE=buildroot PRETTY_NAME="FunKey-OS 2.3.0" VERSION_ID="2.3.0" HOME_URL="https://www.funkey-project.com/" SUPPORT_URL="https://www.funkey-project.com/" BUG_REPORT_URL="https://www.funkey-project.com/" PRIVACY_POLICY_URL="https://www.funkey-project.com" VERSION_CODENAME=Zen UBUNTU_CODENAME=Zen
P.S. 刪除usbnet檔案就可以變回原本USB DISK的掛載方式
按下SELECT + L + R會顯示目前IP位址