LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-03-2013, 07:06 AM   #1
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Rep: Reputation: 45
ssh key gen


Hi all, my system administrator

asked me to do the below so I can get access to the remote server when I am at home, and through it get access to my working pc.

Quote:
ssh-keygen
And press return, by "Enter passthrase" type something, it is better than to leave it blank.
Then send me your ~/.ssh/id_rsa.pub .
What is this I am asking to do? And how save is a sysadmin to have my key?

I would like to thank you in advance for your help

Regards
Alex
 
Old 10-03-2013, 07:10 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
first read the man page: http://linux.die.net/man/1/ssh-keygen
next: ssh-keygen will ask a passphrase, you can leave it blank.
~/.ssh/id_rsa.pub is a file and they ask you to send the (content of that) file.
It is safe.
 
1 members found this post helpful.
Old 10-03-2013, 07:21 AM   #3
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
This explains what it does, and how to operate it: https://en.wikipedia.org/wiki/Ssh-keygen

The wiki page for ssh: https://en.wikipedia.org/wiki/Secure_Shell

The id_rsa.pub file is your public key; refer to the second link to understand what the public keys are. It is just like PGP; You have your private key, which is your personal, private key, and the public key. Since your "system administrator" is asking for this, it is most likely for remote management. Is this computer your personal computer, or a work/school computer?
 
1 members found this post helpful.
Old 10-03-2013, 09:45 AM   #4
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by corp769 View Post
This explains what it does, and how to operate it: https://en.wikipedia.org/wiki/Ssh-keygen
Is this computer your personal computer, or a work/school computer?
this is my computer at work and for access it I need to give the key to admin.
 
Old 10-03-2013, 11:21 AM   #5
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Ahh, then that's that case then, nothing more than just the admin getting everything set up I guess. As pan64 said, no need to worry.
 
1 members found this post helpful.
Old 10-10-2013, 12:00 PM   #6
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Original Poster
Rep: Reputation: 45
I did a mistake! I have sent my ~/.ssh/id_rsa and not the ~/.ssh/id_rsa.pub

what I did to fix that was to remove the
id_rsa
run ssh-keygen and resubmit the right one.

Alex
 
Old 10-10-2013, 08:30 PM   #7
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
yes that will work as long as you inform the admin what you did.

also feel free to read up on the links in my sig.
 
  


Reply



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
[SOLVED] GPG gen-key ISSUE oriolus Linux - Server 2 04-05-2012 02:26 PM
SSH skips public key authentication for a key, but works with another key simopal6 Linux - General 1 07-06-2011 08:33 AM
SSH Key-Gen wifefail Linux - General 7 11-05-2010 02:04 PM
Generating Public and Private Keys using putty key gen ghandizzle8 Linux - Newbie 4 09-16-2010 11:47 PM
gpg --gen-key problems tuhimareikura Red Hat 2 06-29-2008 09:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:11 PM.

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
Open Source Consulting | Domain Registration