Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


Closed Thread
  Search this Thread
Old 02-06-2008, 02:33 AM   #1
LQ Newbie
Registered: Dec 2006
Posts: 13

Rep: Reputation: 0
Can I savely remove the entire .ssh directory



I use three different remote computers for a study-related project (2 for research, 1 webserver), from my local laptop, with SSH.

I am a mere user, I do not have admin rights.

I use SSH and SCP a lot.

Having to type in the password each time I use ssh/scp sucked. So I copied the into the authorized_keys.

However, I think somehow I mixed s/th up. I am not sure and can not reconstruct what I did wrong, anyway between some of the computers I can use scp/ssh w/o problems, but with some combinations I am still asked for the password.

What I want to do: start from scratch.

My question is:
Can I just erase the .ssh directory everywhere, generate new private and public keys, and copy them accordingly?

I ask because I am afraid that I will screw up completely if I erase the .ssh dirs. After I erased the .ssh dirs, will I still be able to log in, at least if using the password?


Last edited by mechagojira; 02-06-2008 at 02:39 AM.
Old 02-06-2008, 03:26 AM   #2
Senior Member
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 37
Didn't it occur to you to do:
mv .ssh ssh
. Then just test to see if it works. If not you can move the folder back and you haven't lost a thing in the process.
Old 02-06-2008, 03:28 AM   #3
Registered: Oct 2007
Location: Norway
Distribution: Slackware 14.1
Posts: 446

Rep: Reputation: 59
Yes. I have never had any problems by removing those folders.
Old 02-06-2008, 02:31 PM   #4
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912
dupe closed ... FUP to

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can I savely remove the entire .ssh directory mechagojira Linux - Newbie 1 02-06-2008 04:41 AM
Copying entire directory with subdirectory? centosfan Linux - Newbie 1 04-20-2007 09:14 PM
remove entire directory. bruse Linux - Newbie 2 04-27-2005 01:23 AM
removing an entire directory pasalacqua128 Linux - Software 2 06-03-2004 04:37 PM
download entire directory via ftp peok Linux - General 5 12-27-2003 06:37 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:25 PM.

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