Solved

Where is my .ssh directory located in my Linux Mint VM?

Posted on 2014-01-07
5
1,441 Views
Last Modified: 2014-01-07
Hi:
Hi:

This is probably a silly question for seasoned Linux jocks.

I'm a newbie to Linux Mint. I'm currently running it in a VirtualBox VM.
I'm currently trying to connect Cola Git GUI to GitHub.
In order to do so I have to generate an SSH key.

I can't seem to locate my ~/.ssh directory on Linx VM.

Is it hidden somewhere else, or do I have to create one.

If I create one, how and where should it be created?

Thanks in advance,
JohnB
0
Comment
Question by:jxbma
5 Comments
 
LVL 37

Assisted Solution

by:Gerwin Jansen
Gerwin Jansen earned 125 total points
ID: 39763267
It's beneath your home directory, so if your account is called johnb it would be here:

/home/johnb/.ssh

You can go to it using:

cd
cd .ssh

then:

pwd

( to display: /home/johnb/.ssh )

If it's not there then do this:

cd
mkdir .ssh

then:

pwd

( to display: /home/johnb/.ssh )
0
 
LVL 88

Assisted Solution

by:rindi
rindi earned 125 total points
ID: 39763341
I don't think OpenSSH is installed in Linux Mint by default, so first install it with the synaptic package manager.

Also, the .ssh folder usually only exists on the PC you are SSHing to another from, and not on the SSH host.

Another thing, folders that start with a . are hidden in Linux, so if you are looking for such a folder using your GUI file-manager, you'll have make sure it has been set to show hidden files / folders. Otherwise you won't see it.
0
 
LVL 21

Assisted Solution

by:Mazdajai
Mazdajai earned 125 total points
ID: 39763371
.ssh is a hidden directory,  you need to use the long listing format, 'ls -lah ~/.ssh'.  If it's not then you may need to create it by invoking sshkeygen -

updatedb && locate .ssh
ssh-keygen -t rsa
0
 
LVL 14

Accepted Solution

by:
comfortjeanius earned 125 total points
ID: 39763435
To create your public and private SSH keys on the command-line:

mkdir ~/.ssh
chmod 700 ~/.ssh
ssh-keygen -t rsa

Open in new window


Plus Ubuntu Information will work with Linux Mint as well: SSH/OpenSSH/Keys

I have a Linux Mint 14 and Ubuntu 13.04 install on Virtualbox and I can ssh into both of them.
0
 
LVL 1

Author Closing Comment

by:jxbma
ID: 39763715
Thanks for the quick response.
Everyone gets a piece of pie.

Thanks,
JB
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now