Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 19th, 2010, 03:51 PM
Superman859 Superman859 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2007
Posts: 313 Superman859 User rank is Sergeant Major (2000 - 5000 Reputation Level)Superman859 User rank is Sergeant Major (2000 - 5000 Reputation Level)Superman859 User rank is Sergeant Major (2000 - 5000 Reputation Level)Superman859 User rank is Sergeant Major (2000 - 5000 Reputation Level)Superman859 User rank is Sergeant Major (2000 - 5000 Reputation Level)Superman859 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 9 h 51 m 59 sec
Reputation Power: 29
Move ssh known_hosts file

I was wondering if it's possible to move the known_hosts file from ~/.ssh/known_hosts to ~/somewhere/.ssh/known_hosts .

I have a server running Plesk and the user home directories do not have write permissions (they do have write permissions within the subfolders, however).

I was able to move the authorized_keys file by editing sshd_config AuthorizedKeysFile , but when I try to log in without password, I'm still prompted every time if I want to add the host to list of known hosts, and it fails to save every time since it cannot write to known_hosts. Thus I am still unable to automate some processes. I'd like known_hosts to be located in the same location as my authorized_keys, which does have correct permissions for users.

Reply With Quote
  #2  
Old October 20th, 2010, 01:57 PM
crustymonkey's Avatar
crustymonkey crustymonkey is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Minneapolis, MN
Posts: 356 crustymonkey User rank is Corporal (100 - 500 Reputation Level)crustymonkey User rank is Corporal (100 - 500 Reputation Level)crustymonkey User rank is Corporal (100 - 500 Reputation Level)crustymonkey User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 13 h 38 m 46 sec
Reputation Power: 11
This is what's listed in man(5) ssh_config:
Code:
UserKnownHostsFile
             Specifies a file to use for the user host key database instead of
             ~/.ssh/known_hosts.

I think that's what you are looking for. You should be able to just set UserKnownHostsFile to ~/somewhere/.ssh/known_hosts in your global ssh_config on that machine.
__________________
badger badger badger badger
badger badger badger badger
MUSHROOM MUSHROOM

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > Move ssh known_hosts file

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap