LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-25-2017, 01:20 PM   #1
drillsar
Member
 
Registered: Jan 2017
Posts: 144

Rep: Reputation: Disabled
SSH Issue


I am running Ubuntu 16 and I am not sure how I add key into putty this is the steps I have taken:

once I log out and run putty again it complains that I have no key.. Do I have to add something to putty?

root:
adduser dummy

usermod -aG sudo dummy

login to dummy
ssh-keygen

ssh-copy-id dummy@myserverip address

chmod 600 ~/.ssh/authorized_keys

sudo nano /etc/ssh/sshd_config

PasswordAuthentication no

sudo systemctl reload sshd

ssh dummy@myserverip able to login to ssh but once I end putty I can't
 
Old 01-25-2017, 01:50 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
putty? Why are you using putty on a Linux system?

Also, you gave commands but didn't specify on which computer those commands were being run.
 
Old 01-25-2017, 02:41 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
It looks like you logged into the server and created keys but installed them on the server itself instead of the windows client.

Here are the steps to create a saved session and keys using PuTTY.

https://www.howtoforge.com/ssh_key_b...ogins_puttyare
 
1 members found this post helpful.
Old 01-26-2017, 03:01 AM   #4
drillsar
Member
 
Registered: Jan 2017
Posts: 144

Original Poster
Rep: Reputation: Disabled
How dumb was I; lol.

The only thing I did wrong was I didn't put the key on one line. I disabled root and password as well in the ssh_config file that should be done correct?
 
1 members found this post helpful.
Old 01-26-2017, 03:19 AM   #5
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,306
Blog Entries: 3

Rep: Reputation: 3720Reputation: 3720Reputation: 3720Reputation: 3720Reputation: 3720Reputation: 3720Reputation: 3720Reputation: 3720Reputation: 3720Reputation: 3720Reputation: 3720
Quote:
Originally Posted by drillsar View Post
I disabled root and password as well in the ssh_config file that should be done correct?
Better double check where you made the changes.

The server configuration is in sshd_config, with a 'd'. Usually that resolves to /etc/ssh/sshd_config

The client configuration is in ssh_config, without a 'd'. Usually that resolves to ~/.ssh/config
 
  


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
Rsync over ssh connection issue, and perms issue thekraken99 Linux - Server 2 01-26-2015 07:50 PM
ssh issue rajasekarans Linux - Enterprise 6 05-22-2013 04:15 AM
Issue with wrapper for ssh which execute ssh. jayantkp Linux - Newbie 4 05-28-2012 04:57 AM
[SSH] Issue logging in [SSH & Permissions] MD3 Linux - Networking 11 12-10-2006 09:25 AM
ssh issue: /usr/bin/ssh -x -oFallBackToRsh no -l WeNdeL Linux - Software 1 03-04-2003 07:17 PM

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

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