Broadband-Hamnet™ Forum :: Applications
Welcome Guest   [Register]  [Login]
 Subject :SSH Access with Putty.. 2013-12-13- 06:53:39 
VA3RRZ
Member
Joined: 2013-08-26- 06:54:56
Posts: 15
Location: L'Orignal, Ontario, Canada

Hi all,

I'm a newbie and need some help with connecting to my node harw wired to my local LAN using Putty in SSH mode.  I've generated a key par using puttygen, saved the private key to a file mynode.ppk and copied and pasted the public key into a file called mynode.pub.  The first few characters in this public file are:  ssh-rsa AAAAB3Nza.......

I've uploaded the public key to my node using the Admin page on the Web Gui and it got a response:

Key installed.  Key file sanitized.

When I try to log in using Putty, with my private key installed in the Authorization parameter, set the session to SSH port 2222, and connect, I get login as:  I type it in, then it says that server refused our key.  I then get the password request, I put it in and I am logged in.

-Is there another setting that I missed?

-Does the public key remain in the router after I power it off/on? Thanks  

IP Logged
 Subject :Re:SSH Access with Putty.. 2013-12-13- 19:46:24 
wb6pyk
Member
Joined: 2013-12-03- 23:40:42
Posts: 2
Location: Camarillo, CA
Hi, If you want the login to happen without you giving the password manually, you can use "pageant" (part of the Putty suite) to store your key (you feed it the .ppk file). 73, Eric WB6PYK
IP Logged
 Subject :Re:SSH Access with Putty.. 2013-12-18- 18:14:44 
WA2ZE
Member
Joined: 2013-07-16- 11:48:15
Posts: 2
Location: New Jersey

I just tried this as well.  Same results.  I can SSH in but I have to supply the root login and my node's password every time.  I would like to be able to SSH into the node without knowing the password.

I'm not familiar with linux and just starting out with BBHN and networking in general.  Any SSH tips?


73,

Paul WA2ZE

IP Logged
 Subject :Re:SSH Access with Putty.. 2013-12-18- 19:22:26 
wb6pyk
Member
Joined: 2013-12-03- 23:40:42
Posts: 2
Location: Camarillo, CA

Paul,

      Here's one site that gives a step-by-step (note this is assuming you are coming in from a Linux/Unix system - my previous answer was specifically for Putty):

http://www.tecmint.com/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps/

73,
Eric

WB6PYK

IP Logged
 Subject :Re:SSH Access with Putty.. 2013-12-19- 05:20:43 
VA3RRZ
Member
Joined: 2013-08-26- 06:54:56
Posts: 15
Location: L'Orignal, Ontario, Canada

Eric, I tired both instructions for login in without a password.  Didn't work.  Found a way that works.  Here's how.  Upload public key file to etc/dropbear directory and rename file to authorized_key or if the file already exists, append public key to to it by copying and pasting.  Chmod 600.  Run Pageant: upload private key; enter passphrase; close window.

In Putty, enter login name in Connection>Data: Auto-login username.   In Session: choose SSH; port 2222.  Save configuration.  Login without typing username or password.  This now works with WinSCP using SSH as well. 

*** Note: There was already an authorized_key on my mesh with a public key inside.  Not sure why. Do the mesh routers need SSH to talk to each other?  I would check before replacing the file with your public key.  Just append your public key to this file for now. 73 de ron

IP Logged
Last Edited On: 2013-12-19- 09:44:56 By VA3RRZ for the Reason
Page # 


Powered by ccBoard


SPONSORED AD: