Page 1 of 1
LuckFox-Pico-Mini-B SSH login
Posted: 2024-05-03 22:27
by aerin
I downloaded and flashed the firmware\buildroot\Luckfox_Pico_Mini_B_Image from the Google disk under Windows using Soc Toolkit.
I assigned the 172.32.0.93 address to connection.
Code: Select all
usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.32.0.93 netmask 255.255.0.0 broadcast 172.32.255.255
inet6 fe80::482a:f919:b19f:b5f5 prefixlen 64 scopeid 0x20<link>
ether 02:00:6c:76:44:07 txqueuelen 1000 (Ethernet)
RX packets 21 bytes 2169 (2.1 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 25 bytes 4922 (4.9 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
And now I can't connect via ssh.
Code: Select all
~$ ssh root@172.32.0.93
root@172.32.0.93's password:
Permission denied, please try again.
Re: LuckFox-Pico-Mini-B SSH login
Posted: 2024-05-04 12:45
by Luckfox Taylor
1. Make sure the password you entered is completely correct. Passwords are case-sensitive, so check if Caps Lock was accidentally activated. If possible, try entering the password in another terminal or application to verify its correctness before attempting to log in via SSH.
2. Ensure that your Windows computer and the development board are on the same local network. This means setting up a USB virtual network port.
https://wiki.luckfox.com/Luckfox-Pico/S ... i-ab-login
Re: LuckFox-Pico-Mini-B SSH login
Posted: 2024-05-04 14:37
by aerin
Password correct. I can enter through adb and login ssh both local and outer addresses:
Code: Select all
adb.exe shell
* daemon not running; starting now at tcp:5037
* daemon started successfully
# ssh root@localhost
root@localhost's password:
# pwd
/root
# exit
Connection to localhost closed.
# ssh root@172.32.0.93
root@172.32.0.93's password:
# pwd
/root
# exit
Connection to 172.32.0.93 closed.
#
But if I try to ssh from host computer, I get an error. I think the issue is that some setting in /etc/ssh/sshd_config is incorrect.
Example connect from linux host at Verbose mode:
Code: Select all
$ ssh -v root@172.32.0.93
OpenSSH_8.9p1 Ubuntu-3ubuntu0.7, OpenSSL 3.0.2 15 Mar 2022
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: Connecting to 172.32.0.93 [172.32.0.93] port 22.
debug1: Connection established.
debug1: identity file /home/aerin/.ssh/id_rsa type -1
debug1: identity file /home/aerin/.ssh/id_rsa-cert type -1
debug1: identity file /home/aerin/.ssh/id_ecdsa type -1
debug1: identity file /home/aerin/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/aerin/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/aerin/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/aerin/.ssh/id_ed25519 type -1
debug1: identity file /home/aerin/.ssh/id_ed25519-cert type -1
debug1: identity file /home/aerin/.ssh/id_ed25519_sk type -1
debug1: identity file /home/aerin/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/aerin/.ssh/id_xmss type -1
debug1: identity file /home/aerin/.ssh/id_xmss-cert type -1
debug1: identity file /home/aerin/.ssh/id_dsa type -1
debug1: identity file /home/aerin/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.7
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.9p1 Ubuntu-3ubuntu0.7
debug1: compat_banner: match: OpenSSH_8.9p1 Ubuntu-3ubuntu0.7 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 172.32.0.93:22 as 'root'
debug1: load_hostkeys: fopen /home/aerin/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:1K4VnJKLH/xu3UnNAM4dvjp67S5QhxPq9Qqveb4R+9s
debug1: load_hostkeys: fopen /home/aerin/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host '172.32.0.93' is known and matches the ED25519 host key.
debug1: Found key in /home/aerin/.ssh/known_hosts:5
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: ssh_packet_read_poll2: resetting read seqnr 3
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: get_agent_identities: bound agent to hostkey
debug1: get_agent_identities: ssh_fetch_identitylist: agent contains no identities
debug1: Will attempt key: /home/aerin/.ssh/id_rsa
debug1: Will attempt key: /home/aerin/.ssh/id_ecdsa
debug1: Will attempt key: /home/aerin/.ssh/id_ecdsa_sk
debug1: Will attempt key: /home/aerin/.ssh/id_ed25519
debug1: Will attempt key: /home/aerin/.ssh/id_ed25519_sk
debug1: Will attempt key: /home/aerin/.ssh/id_xmss
debug1: Will attempt key: /home/aerin/.ssh/id_dsa
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com>
debug1: kex_input_ext_info: publickey-hostbound@openssh.com=<0>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/aerin/.ssh/id_rsa
debug1: Trying private key: /home/aerin/.ssh/id_ecdsa
debug1: Trying private key: /home/aerin/.ssh/id_ecdsa_sk
debug1: Trying private key: /home/aerin/.ssh/id_ed25519
debug1: Trying private key: /home/aerin/.ssh/id_ed25519_sk
debug1: Trying private key: /home/aerin/.ssh/id_xmss
debug1: Trying private key: /home/aerin/.ssh/id_dsa
debug1: Next authentication method: password
root@172.32.0.93's password:
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
Re: LuckFox-Pico-Mini-B SSH login
Posted: 2024-05-07 3:12
by Luckfox Taylor
When the development board is connected to a virtual machine or an Ubuntu host, it registers as a virtual network interface. We need to ensure that this virtual network interface and the development board are in the same LAN. As mentioned earlier, being in the same LAN is crucial for successful SSH connection. The current testing is based on Ubuntu 22.04.
Code: Select all
sudo ip addr add 172.32.0.100/24 dev enx12f2609218cf
sudo ip link set enx12f2609218cf up
Re: LuckFox-Pico-Mini-B SSH login
Posted: 2024-05-08 0:17
by aerin
Thank you very much. This is my first time working with virtual adapters and I confused myself with the addresses.
By the way, in Ubuntu, rtsp does not work in vlc, so I had to install the Flatpack version.
Now everything works.
Re: LuckFox-Pico-Mini-B SSH login
Posted: 2024-05-08 7:22
by Luckfox Taylor
In the Ubuntu environment, you can use the ffplay command for streaming, and the camera's image delay is much smaller than VLC in the Windows environment. Overall, thank you for your active feedback.