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


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

Thanks.

Last edited by mechagojira; 02-06-2008 at 03:38 AM.
 
Old 02-06-2008, 05:41 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
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.
 
  


Reply


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


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