LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 04-30-2010, 12:39 AM   #1
ziphem
Member
 
Registered: Feb 2004
Location: US / EU
Distribution: Fedora 31
Posts: 225

Rep: Reputation: 29
How to create an SSH user account on my laptop


I never considered I would want to remote access my laptop, or that I would be able to figure out how (I know....). In any case, my (only) username and password are not all that complicated - just there for deterence more than anything else (I have a barely functioning battery and a FDE hard drive, so if you're going to unplug and transport this baby, it'll shut off; my hard drive PW is solid).

In any case, I wanted to create another account that I could use to log into with SSH to be able to access files. I've started by disabling SSH login to my current user account (DenyUsers myusername). I know I could add a new user to my system with its own home directory and all, but I want it as least 'present' or invasive as possible. So in sum, is there a way to create an SSH only user, and if so, how?

I thought I would check here to get some pointers, to be sure I don't mess up my system!

Thanks a ton in advance!

Last edited by ziphem; 04-30-2010 at 12:58 AM.
 
Old 04-30-2010, 12:56 AM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192
Hi ziphem

I think I would firstly ask why you do not want to use your regular account?
I ask as, when you setup your ssh key and passphrase, it is this passphrase that will be used and not your non-complicated password.

You may want to fill in the details on which version of Fedora you are on so our Fedora experts know which advice to give.

Good luck
 
1 members found this post helpful.
Old 04-30-2010, 10:56 AM   #3
ziphem
Member
 
Registered: Feb 2004
Location: US / EU
Distribution: Fedora 31
Posts: 225

Original Poster
Rep: Reputation: 29
Hi, thanks very much for the response. I am running Fedora 9. After reading your message, I realize that I'm not doing things to best way. Up to now, I've always done ssh IP -l username, and that's it. I did a search again and found this website, http://www.puddingonline.com/~dave/p...s-HOWTO-5.html , which looks pretty good for my purposes (nice and basic!). Once I set up the the passphrase and keygen together, I would then presumably need to make the change to prevent login via the basic username & password method, right?

Looking at a different scenario, applying this to a virtual server environment where I don't have physical access to the machine, if I had one key on my flash drive and another on my computer, and lost my flash drive, presumably I could log in (from my home computer), create a new key, and delete the old one, right?

Thanks a ton!

Last edited by ziphem; 04-30-2010 at 11:01 AM.
 
Old 04-30-2010, 11:08 AM   #4
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192
Quote:
I would then presumably need to make the change to prevent login via the basic username & password method, right?
I am presuming you mean to stop the basic name and password through ssh, I would think yes but am not a 100% sure as I have always used the passphrase
(hopefully someone else might help with this bit)

Quote:
Looking at a different scenario, applying this to a virtual server environment where I don't have physical access to the machine, if I had one key on my flash drive and another on my computer, and lost my flash drive, presumably I could log in (from my home computer), create a new key, and delete the old one, right?
Yep
 
1 members found this post helpful.
Old 05-01-2010, 11:29 PM   #5
ziphem
Member
 
Registered: Feb 2004
Location: US / EU
Distribution: Fedora 31
Posts: 225

Original Poster
Rep: Reputation: 29
Talking

Just upgraded all my SSH logins to key + passphrase - including my virtual dedicated server, verified they work (!!), and disabled password authentication. The VDS for some reason was a nightmare - almost 2 hours to figure out! - but everything's all working and switched over now. Thanks for the guidance, sometimes a basic understanding is what's needed...

Quote:
when you setup your ssh key and passphrase, it is this passphrase that will be used and not your non-complicated password
 
  


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
how to create new user account rachala2 Linux - Newbie 2 01-04-2009 01:29 AM
How to Create an Account with only SSH Access matthew.collins Linux - Security 4 03-09-2006 08:30 PM
linux create user account deus1 Linux - General 2 06-04-2005 06:32 PM
how to create root-like user/account? rsumbeling Linux - General 6 11-23-2004 12:38 PM
cannot create new user account kpachopoulos Linux - Newbie 4 08-17-2004 07:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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