DaemonForums  

Go Back   DaemonForums > Other Operating Systems > Other BSD and UNIX/UNIX-like

Other BSD and UNIX/UNIX-like Any other flavour of BSD or UNIX that does not have a section of its own.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 21st November 2008
milo974 milo974 is offline
Fdisk Soldier
 
Join Date: Jul 2008
Posts: 58
Default connect to openbsd box (ssh)

hello, at work we have openbsd firewall with ssh access (auth with private key)
At home, i ve 2 laptop :
On xp, i use putty, i can connect to ssh box.
But on mac os X (leopard) , i don't know how to connect on it :
i ve try : launch terminal and type : ssh 193.253.XXX.XXX -l milo -p 2222
i don't know where put private key, if someone can help me please.
Reply With Quote
  #2   (View Single Post)  
Old 21st November 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

As I recall, PuTTY uses a different format for keys.. does ".ppk" sound familiar?

Well, you'll need to convert that key to the format used by OpenSSH.. and here's what I've found.

http://www.leadingedgescripts.co.uk/...-an-apple-mac/

It looks pretty strait forward, obtain the puttygen program.. convert the key.. copy it over to the mac. (With safe permissions.)

Hope that helps.
Reply With Quote
  #3   (View Single Post)  
Old 23rd November 2008
milo974 milo974 is offline
Fdisk Soldier
 
Join Date: Jul 2008
Posts: 58
Cool bad passphrase

i ve tried it, convert ppk to ssh, it 's ok.
do : chmod 700 mykey.ssh
and type in terminal : ssh me@193.253.xxx.xxx -p 2222 -i mykey.ssh

it ask me my passphrase, i type it, but it return me that it is wrong
therefore, i ve tried with putty (on windows), it works ...
Can you help me
Reply With Quote
  #4   (View Single Post)  
Old 3rd January 2009
FloridaBSD FloridaBSD is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 58
Default

The easier solution to you quandary is to issu the following series of commands on your osx machine.

Step one
Code:
ssh-keygen -t rsa
Step two (upload key to remote host)
Code:
scp ~/.ssh/id_rsa.pub remoteusername@remotehost  cat id_rsa.pub ~/.ssh/authorized_keys
__________________
Google Linux is a Green Horns Best Friend (GHBF).
Windows = a 32 bit extensions to a 16 bit patch to an 8 bit operating system originally coded for a four bit processor written by 2-bit monopolistic software company founded by a .3-bit Harvard Drop out, who can't stand one respectable bit of competition.
If I believe something to be immoral a will not keep quite and let my voice of annoyance be heard loud and clear.
Reply With Quote
  #5   (View Single Post)  
Old 3rd January 2009
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,125
Default

I wrote a small howto about setting up password less ssh access. See http://daemonforums.org/showthread.php?t=1758
__________________
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
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
connect to OpenBSD BOX with VNC mfaridi OpenBSD General 9 14th April 2010 08:38 PM
How to connect Free VPN with OpenBSD mfaridi OpenBSD General 19 9th February 2009 12:52 PM
FTP-Proxy cannot connect plexter OpenBSD Packages and Ports 6 11th October 2008 05:59 PM
wpa_supplicant won't connect to AP adamk FreeBSD General 4 24th September 2008 08:09 AM


All times are GMT. The time now is 05:21 AM.


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