LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-14-2017, 12:06 PM   #1
oliveoyl
Member
 
Registered: Sep 2016
Posts: 42

Rep: Reputation: Disabled
moving sshkey to newly installed OS


I backed up my .ssh directory and then did a fresh OS install. After moving the keys to .ssh I'm not able to connect via keys. Is there anything else that needs to be done when moving keys?
 
Old 03-14-2017, 12:45 PM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,329
Blog Entries: 3

Rep: Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726
It would help with the exact error message and the line you are using to connect.

But minus those, one guess is that the permissions for the directory and the private keys may be off. The directory should be u=rwx,g=,o= aka 700 and private keys u=rw,g=,u= aka 600. The other files can have the same permissions as the private keys and it won't hurt.
 
1 members found this post helpful.
Old 03-14-2017, 12:49 PM   #3
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
As above post really but:
Public or private keys? Same distro or different?
 
Old 03-14-2017, 12:58 PM   #4
oliveoyl
Member
 
Registered: Sep 2016
Posts: 42

Original Poster
Rep: Reputation: Disabled
Perms are correct. I'm on ssh 7.3 and it looks like it does not like my dsa key.

debug1: Skipping ssh-dss key id_dsa - not in PubkeyAcceptedKeyTypes
 
Old 03-14-2017, 01:06 PM   #5
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,329
Blog Entries: 3

Rep: Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726
Ok. The legacy cryptography is the problem.

Quote:
* Support for ssh-dss, ssh-dss-cert-* host and user keys is disabled
by default at run-time.
https://www.openssh.com/txt/release-7.0
The solution is to generate new keys that use RSA or Ed25519.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to identify newly installed o/s manikandan_vs Linux - Newbie 7 08-19-2010 04:35 PM
Cannot boot already installed ubuntu on newly installed win xp abhi_337 Ubuntu 1 07-13-2006 03:33 AM
Newly Installed Apps anon209 Linux - Newbie 2 11-25-2005 09:41 PM
Where are my newly installed programs glen4cindy Mandriva 4 03-28-2005 11:46 AM
newly installed programs... tang Linux - Software 2 09-10-2003 08:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:40 AM.

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