DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Security

FreeBSD Security Securing FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 7th June 2009
rtwingfield rtwingfield is offline
Real Name: Ron Wingfield
Port Guard
 
Join Date: Oct 2008
Location: Little Rock, AR USA
Posts: 29
Thanked 0 Times in 0 Posts
Default ssh and PuTTY Configuration

I'm trying to configure PuTTY . . .running on a Windoze box to connect to FreeBSD. The PuTTY Configuration asks for a "Private key file for authentication", for example, E:\user\XYZ\ssh\id_rsa . . .simply a path to a file on the Windoze box.

Given the contents of the .\id_rsa file similar as follows (I've intentionally omitted and altered data for this example):

-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,0973EX1F93B72DF7

CZq9VSOMwM1bGg3oqH5mOSSxDfH26sGKe12HOBgrew92EUyRfP QcqNbkuynH3P7z
l/X9sox6fIo1puIf5jK/aGkTpwQHyyxGHFodHPGiokjJa5f8FRpuPfVkN+y837Pr
(lines omitted here)
bsi55+lRoUGW7OXVPCiwdKmrwU9xqj/3kZtA5u6r1UpkGBjjLVMdH8QdxYaIIFgG
178SSrx8RvOdoKTiuByY4VLCE1RPG9om2F3uUGBo4+38+c9IUs KtHQ==

-----END RSA PRIVATE KEY-----


. . .I don't know exactly what the PuTTY system is looking for ...just that it's not connecting. Should the id_rsa file in the Windoze directory be edited to include only the key string as I've indicated in red, or include the Proc-Type and DEK-Info strings, too. Additionally, should the line feeds at the end of each line in the key string be removed?

Thanks,
RW
Reply With Quote
  #2   (View Single Post)  
Old 7th June 2009
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,135
Thanked 182 Times in 149 Posts
Default

The key format used by PuTTY is not compatible with OpenSSH. PuTTY has an utility to do the conversion.
I don't remember the name, so you have to do some searching or wait for a kind soul to tell you
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #3   (View Single Post)  
Old 7th June 2009
rtwingfield rtwingfield is offline
Real Name: Ron Wingfield
Port Guard
 
Join Date: Oct 2008
Location: Little Rock, AR USA
Posts: 29
Thanked 0 Times in 0 Posts
Default

I found a PuTTY home site with extensive documentation. I'll read-up.

Thanks again,
RW
Reply With Quote
  #4   (View Single Post)  
Old 8th June 2009
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

You need the PuTTY Keygen tool. Import the OpenSSH key into there, then export out the .ppk file. The .ppk (putty private key) file is the one that you use in PuTTY.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #5   (View Single Post)  
Old 8th June 2009
rtwingfield rtwingfield is offline
Real Name: Ron Wingfield
Port Guard
 
Join Date: Oct 2008
Location: Little Rock, AR USA
Posts: 29
Thanked 0 Times in 0 Posts
Default PuTTY Resources

Here are a few resources that I've found useful:

PuTTY Users Manual: http://the.earth.li/~sgtatham/putty/0.60/htmldoc/
PuTTY Download Page: http://chiark.greenend.org.uk/~sgtat.../download.html
An Example: http://linux-sxs.org/networking/openssh.putty.html
I've downloaded puttygen.exe and apparently it successfully converted the results of $ ssh-keygen -b 1024 -t rsa .

Regardless, I still cannot get the PuTTY session to negociate with the (restarted) sshd. The PuTTY log on the Windoze box as follows:

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2009.06.08 16:32:11 =~=~=~=~=~=~=~=~=~=~=~=
Event Log: Appending session log (SSH packets mode) to file: E:\user\RTW\.ssh\putty.log
Event Log: Looking up host "66.138.104.73"
Event Log: Connecting to 66.138.104.73 port 22
Event Log: Network error: Connection timed out
Apparently from what I've read, the (FreeBSD) server is not responding, acknowledging, or negotiating with the Windoze client.

I've just about run out of ideas. I've attached the sshd_config file.

Any suggestions will be greatly appreciated.

Ron W.
Attached Files
File Type: conf sshd_config.conf (2.7 KB, 64 views)
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PF Configuration for newbie slakic OpenBSD Security 1 20th August 2009 02:35 PM
carp configuration ohhcarp OpenBSD General 3 16th April 2009 10:50 PM
k3b, configuration. maxrussell FreeBSD Ports and Packages 4 3rd March 2009 04:23 AM
another program like Putty mfaridi FreeBSD Security 4 7th July 2008 02:41 PM


All times are GMT. The time now is 08:33 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick