VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   Secure Shell (https://forums.vandyke.com/forumdisplay.php?f=15)
-   -   Can't Get ssh Working Between My MacAir and Linux Box (https://forums.vandyke.com/showthread.php?t=14144)

o2b 04-10-2020 03:55 PM

Can't Get ssh Working Between My MacAir and Linux Box
 
Hi,

I have been trying to get ssh working at home between my MacAir (MacOS Mojave 10.14.6) and Linux box (Ubuntu 18.04 LTE). I can ssh from Linux to Mac, but not Mac to Linux.

I had tried to solve my problem with a friend of mine who is a senior Linux administrator and in the Apple forums, the latter for ~3 weeks and the discussion fizzled out with no success.

Ill provide some basic info in a reply.

o2b

o2b 04-10-2020 06:09 PM

I could not see my thread nor (of course) reply before. Probably because I am such a new user.

Some Linux Side Info
tony@radagast:~$ pwd
/home/tony

tony@radagast:~$ ls -al
...
drwx------ 2 tony tony 4096 Apr 9 18:09 .ssh
...

tony@radagast:~/.ssh$ pwd
/home/tony/.ssh
tony@radagast:~/.ssh$ ls -l
total 20
-rw------- 1 tony tony 404 Apr 5 11:30 authorized_keys
-rw------- 1 tony tony 404 Apr 5 11:30 authorized_keys2
-rw------- 1 tony tony 1679 Apr 3 18:36 id_rsa
-rw-r--r-- 1 tony tony 395 Apr 3 18:36 id_rsa.pub
-rw-r--r-- 1 tony tony 185 Apr 7 12:18 known_hosts
tony@radagast:~/.ssh$

tony@radagast:~/.ssh$ ssh mirkwood@luthien.local
The authenticity of host 'luthien.local (192.168.0.10)' can't be established.
ECDSA key fingerprint is SHA256:nJZhcGnqWgjj+SLMFkKAH+fvLL9d3DLs5/EiPk/w4OM.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'luthien.local,192.168.0.10' (ECDSA) to the list of known hosts.
Last login: Thu Apr 9 14:11:09 2020
luthien:~ mirkwood$

tony@radagast:~/.ssh$ scp ./foo.txt mirkwood@luthien.local:~/.ssh
foo.txt 100% 4 0.7KB/s 00:00
tony@radagast:~/.ssh$

(Not sure why I didn't successfully ssh in without any commentary as I die before.

o2b 04-10-2020 06:12 PM

Mac Side Info
 
Mac Side Info

bash-3.2$ pwd
/Users/mirkwood

bash-3.2$ ls al

drwx------ 8 mirkwood staff 256 Apr 9 14:17 .ssh


bash-3.2$ pwd
/Users/mirkwood/.ssh
bash-3.2$ ls -l
total 32
-rw-r--r-- 1 mirkwood staff 395 Apr 3 18:44 authorized_keys
-rw-r--r-- 1 mirkwood staff 395 Apr 3 18:32 authorized_keys2
drwxr-xr-x 3 mirkwood staff 96 Apr 7 12:59 debug
-rw------- 1 mirkwood staff 1831 Apr 3 18:42 id_rsa
-rw-r--r-- 1 mirkwood staff 404 Apr 3 18:42 id_rsa.pub
-rw-r--r-- 1 mirkwood staff 360 Apr 9 18:08 known_hosts

bash-3.2$ ssh tony@radagast
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: POSSIBLE DNS SPOOFING DETECTED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The ECDSA host key for radagast has changed,
and the key for the corresponding IP address 23.195.69.110
is unknown. This could either mean that
DNS SPOOFING is happening or the IP address for the host
and its host key have changed at the same time.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:N6nq+xrVIcIOXvSbLuHe6eTXIKPMpbTEJ16Rj3OrDTk.
Please contact your system administrator.
Add correct host key in /Users/mirkwood/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/mirkwood/.ssh/known_hosts:1
ECDSA host key for radagast has changed and you have requested strict checking.
Host key verification failed.
bash-3.2$ ssh tony@radagast
tony@radagast: Permission denied (publickey).
bash-3.2$


o2b

jdev 04-10-2020 06:25 PM

Hi o2b,

These forums are reserved for discussion of secure shell technology where our VanDyke Software products are directly involved.

None of the clients or servers in your scenario involve VanDyke Software products. Your question should be posted to a non-VanDyke Software forum that is specific to the products and technology that are involved.

o2b 04-11-2020 07:42 AM

Oh man, sorry!

jdev 04-13-2020 11:44 AM

No worries.

I hope you find the answers you're looking for.

--Jake


All times are GMT -6. The time now is 01:10 PM.