duckietown / docs-opmanual_duckiebot

Other
1 stars 1 forks source link

ssh permission denied #218

Open zvtibo opened 5 years ago

zvtibo commented 5 years ago

Context

What step were you trying in the documentation? SSH to the Duckiebot What command line were you running? ssh duckiebot.local

Problem

I used the default settings.It asks for password and I enter the linux-password quackquack. It shows Permission denied, please try again What did you expect to happen? login in without password

System information

Duckiebot version:

Computer OS:

Additional notes

Add any other notes about the problem here.

Screenshots

If necessary, add screenshots to help explain your problem.

f62d8ff3aa', 'duckietown/rpi-duckiebot-web_video_server:master18'] INFO:dts:Written to /media/chen/HypriotOS/user-data INFO:dts:Written to /media/chen/HypriotOS/config.txt INFO:dts:setup step concluded DEBUG:dts:$ ['sync'] DEBUG:dts:$ ['udisksctl', 'unmount', '-b', '/dev/disk/by-label/HypriotOS'] Unmounted /dev/sda1. DEBUG:dts:$ ['udisksctl', 'unmount', '-b', '/dev/disk/by-label/root'] Unmounted /dev/sda2. (base) chen@chen-System-Product-Name:~/.ssh$ ping duckiebot.local PING duckiebot.local (192.168.0.104) 56(84) bytes of data. 64 bytes from 192.168.0.104 (192.168.0.104): icmp_seq=1 ttl=64 time=128 ms 64 bytes from 192.168.0.104 (192.168.0.104): icmp_seq=2 ttl=64 time=53.3 ms 64 bytes from 192.168.0.104 (192.168.0.104): icmp_seq=3 ttl=64 time=53.2 ms 64 bytes from 192.168.0.104 (192.168.0.104): icmp_seq=4 ttl=64 time=57.4 ms 64 bytes from 192.168.0.104 (192.168.0.104): icmp_seq=5 ttl=64 time=56.9 ms 64 bytes from 192.168.0.104 (192.168.0.104): icmp_seq=6 ttl=64 time=56.1 ms 64 bytes from 192.168.0.104 (192.168.0.104): icmp_seq=7 ttl=64 time=5.21 ms ^C --- duckiebot.local ping statistics --- 7 packets transmitted, 7 received, 0% packet loss, time 6007ms rtt min/avg/max/mdev = 5.215/58.713/128.552/33.401 ms (base) chen@chen-System-Product-Name:~/.ssh$ ping duckiebot.local PING duckiebot.local (192.168.0.104) 56(84) bytes of data. 64 bytes from 192.168.0.104 (192.168.0.104): icmp_seq=1 ttl=64 time=58.5 ms 64 bytes from 192.168.0.104 (192.168.0.104): icmp_seq=2 ttl=64 time=5.40 ms 64 bytes from 192.168.0.104 (192.168.0.104): icmp_seq=3 ttl=64 time=5.18 ms ^C --- duckiebot.local ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 5.189/23.061/58.586/25.120 ms (base) chen@chen-System-Product-Name:~/.ssh$ ssh duckiebot.local The authenticity of host 'duckiebot.local (192.168.0.104)' can't be established. ECDSA key fingerprint is SHA256:4XM7ZjYiZ5/GO0nhLsO+Vch5pSuRrrc05+sDkvGqe50. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'duckiebot.local,192.168.0.104' (ECDSA) to the list of known hosts. chen@duckiebot.local's password: Permission denied, please try again. chen@duckiebot.local's password: Permission denied, please try again. chen@duckiebot.local's password: chen@duckiebot.local: Permission denied (publickey,password). (base) chen@chen-System-Product-Name:~/.ssh$ ssh duckiebot.local chen@duckiebot.local's password: Permission denied, please try again. chen@duckiebot.local's password: Permission denied, please try again. chen@duckiebot.local's password:

Note: text is preferred.

frank-qcd-qk commented 5 years ago

I think in some cases you have to do: $ ssh [username]@duckiebot.local And then type in the password you set or the default option. If you don't provide the username it will default to the pc's username.

Sometimes the default ssh key doesn't work. @AndreaCensi the default ssh key just seems not working and I have tried with all 3 of mine and they just don't work.....

zvtibo commented 5 years ago

It solved my case.However, it's really strange since I've initialized before without adding username as prefix.I reinitialized the SD card and it happened.