LinuxQuestions.org
Help answer threads with 0 replies.
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 06-29-2009, 09:09 AM   #1
moor93
LQ Newbie
 
Registered: Jun 2009
Posts: 18

Rep: Reputation: 0
Removing ssh authenticatin private key ppk


hello guys

i own a linux-based router which accept ssh connection.
with this linux distrbution (Linux version 2.4.24-uc0-iDirect0 (root@s1100bld) (gcc version 3.3.2) #1 Thu Jun 19 06:19:00 EDT 2008)

i cant connect to it remoetly through putty or winscp cuz it's requird private key

i have a physical connection to it through console cable & i want to remove this key so i can connect to it using password method only but i don't know how.

i tried the x509 command but i got nothing.
 
Old 06-30-2009, 05:04 AM   #2
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
ssh keys are usually stored in /home/<user>/.ssh/ or /etc/ssh/, have a look around.
 
Old 06-30-2009, 06:22 AM   #3
akiku
Member
 
Registered: Jun 2009
Distribution: Slackware
Posts: 62

Rep: Reputation: 17
Quote:
Originally Posted by moor93 View Post
hello guys
i cant connect to it remoetly through putty or winscp cuz it's requird private key
You can connect using ssh through the wired connection?
If so, you should be able to configure sshd to accept remote connections by editing the daemon configuration on your router (/etc/ssh/sshd_config).
You'll also need to add the public key of the computers you will be using to connect remotely to the authorized_keys file in the router (~/.ssh/authorized_keys).
Allowing password authentication can be dangerous; you'll have bots trying brute force attacks to get in.
 
Old 06-30-2009, 12:32 PM   #4
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 14.1
Posts: 581

Rep: Reputation: 38
Quote:
Originally Posted by akiku View Post
Allowing password authentication can be dangerous; you'll have bots trying brute force attacks to get in.
Even with just private key allowed, they still try.

Cheers.
 
Old 07-01-2009, 07:08 AM   #5
akiku
Member
 
Registered: Jun 2009
Distribution: Slackware
Posts: 62

Rep: Reputation: 17
Quote:
Originally Posted by MQMan View Post
Even with just private key allowed, they still try.

Cheers.
Right, but as long you don't do something really stupid with your private key (like posting it on the web), they will never get through.

Another option to look at if you're really paranoid, like me, is to use a usb token like the yubi key. This too would implement 2-factor authorization. No bot will get in that way.
 
Old 07-01-2009, 09:10 AM   #6
moor93
LQ Newbie
 
Registered: Jun 2009
Posts: 18

Original Poster
Rep: Reputation: 0
Thank you guys

can i remove these keys using x509 command
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can't use private key for ssh t0ken407 Linux - Server 9 05-31-2009 02:50 PM
SSH Public/Private Key Fail. Help Please! hawk__0 Linux - Networking 9 11-07-2008 03:36 PM
ssh private key question vonedaddy Linux - Security 4 01-14-2008 10:41 AM
need help with SSH private/public key taduser Linux - Security 2 04-02-2007 07:07 PM
SSH: Help needed adding private key thomsky Linux - Security 3 10-21-2006 05:04 PM

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

All times are GMT -5. The time now is 07:48 AM.

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