Solved

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

Posted on 2014-01-07
5
1,750 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 38

Assisted Solution

by:Gerwin Jansen, EE MVE
Gerwin Jansen, EE MVE 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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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.

724 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