LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-17-2018, 07:11 AM   #1
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Connect with dolphin / sftp to multi-boot box -> known_host key handling


I use a PC and a netbook, the latter connected via WLAN to the router, router and PC via ethernet. Both are multi-boot systems.

I have a working connection of opensuse tumbleweed (PC) to opensuse tumbleweed (netbook) using dolphin's sftp (fish?) service. I want to establish also a connection of opensuse tumbleweed (PC) to MX-17 (netbook) again with dolphin.

When I try to intitialize the connection dolphin on the PC gives an error, something like "the host key of the server changed, DNS-spoofing ... Fingerprint = xyz, contact your administrator" (advice to soliloquize? ).

I suspect from this thread (https://www.linuxquestions.org/quest...0/#post5855589) that this has to do with the keys in known_hosts. How can I place the keys for both systems on the netbook in the known_Hosts file of the PC? Note that the host name (netbook) is the same in tumbleweed and MX17. Thanks for any suggestions .

Last edited by JZL240I-U; 05-17-2018 at 07:13 AM.
 
Old 05-17-2018, 07:42 AM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,310
Blog Entries: 3

Rep: Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722
1) Well, one way is to add both sets of keys to the known_hosts file. So you will have several keys for the same address or IP number.

2) Another way is to have all the systems that boot on the same device use the same keys.

Code:
sudo tar zcf keys.tar.gz /etc/ssh/*key*
Then copy the tarball to somewhere you can read it later and reboot to the other system. Once rebooted in the other system copy the keys over the existing ones.

Code:
cd /etc/
sudo tar zxpf keys.tar.gz
Then restart sshd.
 
Old 05-18-2018, 12:23 PM   #3
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
I used your scheme #1). Worked like a charm. (Had to think hard what key to paste where, since SUSE is very differently organized as compared to MX-17, but no problems).

Thank you, solved.

 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up Dolphin to use sftp folder...SSH issues? Tech7 Linux - Networking 1 10-02-2014 04:31 PM
dolphin problem with sftp prowlerxpla Linux - Software 2 12-08-2011 05:44 AM
Slackware 13.1: Konqueror/Dolphin and sftp:// not working TL_CLD Slackware 12 01-11-2011 11:31 AM
[SOLVED] Dolphin and sftp protocol problem thirteen_engines Slackware 3 05-22-2010 12:43 PM
SSH Known_Host key Issue sachinh Linux - Security 3 10-16-2008 05:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration