LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-15-2012, 07:49 AM   #16
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260

Quote:
Originally Posted by j0sh-linux View Post
So I had to correct the /etc/.ssh/config file which had the info about where the private key was, so earlier it was,
Code:
Host    root
Hostname        rsnap.local.josh.com
IdentityFile    /root/cron/localhost-rsnapshot-key
but then I changed it to,
Code:
Host    *.local.josh.com
User    root
IdentityFile    /root/cron/localhost-rsnapshot-key
So you didn’t use root as the target to the ssh command before, because it should work too: ssh root?

The string after host can be any arbitrary one, it’s just the one you have to use later on to access these defaults:
Code:
Host          foobar
Hostname      rsnap.local.josh.com
IdentityFile  /root/cron/localhost-rsnapshot-key
and then use foobar as target hostname in the ssh command. As the local executing user is already root, I think this line can be left out or is it a normal use (then you would need it).
 
  


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
ssh public key authentication teacup Linux - Networking 4 11-27-2011 11:27 PM
SSH skips public key authentication for a key, but works with another key simopal6 Linux - General 1 07-06-2011 08:33 AM
SSH public key authentication Jeroen1000 Linux - Security 12 09-07-2009 04:14 AM
Public key authentication with ssh elnacho12 Linux - Networking 3 12-18-2007 08:38 AM
Can't use public key authentication with SSH Noob69 Linux - General 5 01-06-2006 06:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:38 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