?
Solved

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

Posted on 2014-01-07
5
Medium Priority
?
1,877 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 500 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 500 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 500 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 500 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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Hello EE, Today we will learn how to send all your network traffic through Tor which is useful to get around censorship and being tracked all together to a certain degree. This article assumes you will be using Linux, have a minimal knowledge of …
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.
Suggested Courses
Course of the Month14 days, 1 hour left to enroll

801 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