Atlas 200DK制卡成功, 但SSH Connection refused
收藏回复举报
Atlas 200DK制卡成功, 但SSH Connection refused
新人帖
发表于2022-12-18 21:28:32
0 查看

按读卡器场景安装的,安装成功后,网络能ping通,但SSH拒绝。

修改了make_ubuntu_sd.sh中的网卡设置,开启DHCP (实际获取IP为  10.0.0.10)。

echo \"

network:

  version: 2

  renderer: networkd

  ethernets:

    eth0:

      dhcp4: yes

#      addresses: [${NETWORK_CARD_DEFAULT_IP}/24]

#      gateway4: ${NETWORK_CARD_GATEWAY}

      nameservers:

            addresses: [114.114.114.114]

参考的安装指导: https://www.hiascend.com/document/detail/zh/Atlas200DKDeveloperKit/1013/environment/atlased_04_0010.html

(base) root@R9000:/home/wei/Downloads/Atlas200DK# python make_sd_card.py local /dev/sdd

Begin to make SD Card...

disk /dev/sdd size 61891149824, sector num 120881152

sector size 512

Please make sure you have installed dependency packages:

     apt-get install -y qemu-user-static binfmt-support gcc-aarch64-linux-gnu g++-aarch64-linux-gnu

Please input Y: continue, other to install them:y

Step: Start to make SD Card. It need some time, please wait...

Command:

bash /mnt/datadisk/downloads/Atlas200DK/make_ubuntu_sd.sh  /dev/sdd /mnt/datadisk/downloads/Atlas200DK ubuntu-18.04.4-server-arm64.iso /mnt/datadisk/downloads/Atlas200DK/A200dk-npu-driver-21.0.4-ubuntu18.04-aarch64-minirc.tar.gz none 192.168.0.2 192.168.1.2 120881152 512 >> /mnt/datadisk/downloads/Atlas200DK/sd_card_making_log/make_ubuntu_sd.log

Make SD Card successfully!

(base) root@R9000:/home/wei/Downloads/Atlas200DK# ping 192.168.1.2

PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.

64 bytes from 192.168.1.2: icmp_seq=1 ttl=64 time=1.91 ms

64 bytes from 192.168.1.2: icmp_seq=2 ttl=64 time=3.91 ms

64 bytes from 192.168.1.2: icmp_seq=3 ttl=64 time=1.24 ms

^C

--- 192.168.1.2 ping statistics ---

3 packets transmitted, 3 received, 0% packet loss, time 2004ms

rtt min/avg/max/mdev = 1.235/2.351/3.912/1.137 ms

(base) root@R9000:/home/wei/Downloads/Atlas200DK# ping 10.0.0.10

PING 10.0.0.10 (10.0.0.10) 56(84) bytes of data.

64 bytes from 10.0.0.10: icmp_seq=1 ttl=64 time=0.709 ms

64 bytes from 10.0.0.10: icmp_seq=2 ttl=64 time=0.701 ms

64 bytes from 10.0.0.10: icmp_seq=3 ttl=64 time=1.94 ms

^C

--- 10.0.0.10 ping statistics ---

3 packets transmitted, 3 received, 0% packet loss, time 2050ms

rtt min/avg/max/mdev = 0.701/1.117/1.943/0.583 ms

(base) root@R9000:/home/wei/Downloads/Atlas200DK# ssh HwHiAiUser@10.0.0.10

ssh: connect to host 10.0.0.10 port 22: Connection refused

(base) root@R9000:/home/wei/Downloads/Atlas200DK# ssh HwHiAiUser@192.168.1.2

ssh: connect to host 192.168.1.2 port 22: Connection refused

本帖最后由 匿名用户2024/06/27 16:37:34 编辑

我要发帖子