LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


[I APOLOGIZE FOR DUPLICATE POSTING THIS THREAD]

Hi!

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 id_rsa.pub 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?

Thanks.

Last edited by mechagojira; 02-06-2008 at 03:39 AM.
 
Old 02-06-2008, 04:26 AM   #2
Zmyrgel
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:
Code:
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, 04:28 AM   #3
Dinithion
Member
 
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, 03:31 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
dupe closed ... FUP to
http://www.linuxquestions.org/questi...ectory-619017/
 
  


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 05:41 AM
Copying entire directory with subdirectory? centosfan Linux - Newbie 1 04-20-2007 10:14 PM
remove entire directory. bruse Linux - Newbie 2 04-27-2005 02:23 AM
removing an entire directory pasalacqua128 Linux - Software 2 06-03-2004 05:37 PM
download entire directory via ftp peok Linux - General 5 12-27-2003 07:37 AM


All times are GMT -5. The time now is 09:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration