Download your favorite Linux distribution at LQ ISO.
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!


  Search this Thread
Old 02-06-2008, 02:32 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 tyoe in the password easch time I use ssh.scp sucked. So I copied the into the authorized_keys.

However, I think somehow I mized 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:38 AM.
Old 02-06-2008, 04:41 AM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
The dot files and directories, such as .ssh, in your home folder are created the first time you use an application or service. Your user preferences are stored there. You can safely delete the file/folder and create a new one when you use ssh again.

If the dot file is anywhere but your home folder, you may not be able to delete it. Also, it may not be safe to delete it.


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
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
changing permissions for entire directory jmarsh Linux - Networking 2 05-13-2003 08:12 AM > Forums > Linux Forums > Linux - Newbie

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