Jump to content

Recommended Posts

Hi Guys

 

I am a bit confused with this SSH authentication using stored keys, my IDE keeps asking me to authenticate each time i save etc etc.

 

OK so

 

I have a free BSD box onto which i remotely save data using an IDE which keeps asking for confirmation of authenticity i have to press enter that's it, the account is a child account.

 

Ok so i tried a few attempts generating a key with putty and and putting it places in .ssh on the freebsd box like known_hosts etc.

 

I cant get it to work.

 

Can someone help me out or direct me to some tutorial.

 

Regards

 

Nadeem

Link to comment
https://forums.phpfreaks.com/topic/203499-ssh-ftp-and-ide-netbeans-freebsd/
Share on other sites

There is an issue wich is that i cant get it to work, maybe its the wrong algorithm or flavor.

 

i have generated using PUTTYGEN

 

on my workstation

C:\private_key_192.168.16.20.pkf

C:\public_key_192.168.16.20

 

I copy and paste public key into the servers .ssh/known_hosts file

 

(SHOULD I do this on the root account or the FTP account i use to log into FTP when developing using the IDE ???)

 

The IDE at my workstation end asks for the private key file

 

am i doing right ?

The process is quite simple. Generate a public key on your client machine, upload it to the server machine, add it to your authorized_keys file which will be within ~/.ssh/authorized_keys

 

my IDE keeps saying invalid private_key private_key.ppk

 

and the IDE in project config also asks for a known hosts file

this is what i have

 

---- BEGIN SSH2 PUBLIC KEY ----

Comment: "dsa-key-20100601"

AAAAB3NzaC1kc3MAAACBALfaxaMRL4GXMYt29ZsewgcIiNTC/AZsXXMKLbXnL1EZ

ELpNQ+MIkJunw2ClYEfKYw/kv2vzc1US8hPa5851GMTML4836IGdm22BMBDI6FZA

M6kBy5LWcbr/Q3XnsO4VX9jACimxLIpiSPbegEVn7xTuYQMKdJzSY+KmfXquqBRD

AAAAFQDew7fTib7y3CjZoo8vNNTOJgiCNQAAAIB6vFrrYjhLHBr90Gg/Uet1i7PK

XvZRuhhoYLox9qKZiqK8/1vyv6CQFWLu9fDdNXxxqvRnjrYrb3LwveZo8VboqCwQ

Rb/6hLcaw684zEn6c10DmQOMHeVI5sIRgWTgvnPL/iWIN+JqVsZgDAo5TnbdyUyE

nPF3i9GzV8mSFRFNwwAAAIEAt7UcoRLGctv3hCrIuQH8kOMPj71tkNUEvgCinCun

WXKPFOm4Nsr1D5TAO5FmAuMN1R1NB4JAJuG+Q/0untTgPGPKqQWoK7OjzB2Nfm8j

Jy7zw1y5oKL0dSy2/bWyWKfntPXGCQJDLVbymw8XcxSNH2dmrSJvM/o1XcyWGiqp

hJ0=

---- END SSH2 PUBLIC KEY ----

 

and

 

PuTTY-User-Key-File-2: ssh-dss

Encryption: aes256-cbc

Comment: dsa-key-20100601

Public-Lines: 10

AAAAB3NzaC1kc3MAAACBALfaxaMRL4GXMYt29ZsewgcIiNTC/AZsXXMKLbXnL1EZ

ELpNQ+MIkJunw2ClYEfKYw/kv2vzc1US8hPa5851GMTML4836IGdm22BMBDI6FZA

M6kBy5LWcbr/Q3XnsO4VX9jACimxLIpiSPbegEVn7xTuYQMKdJzSY+KmfXquqBRD

AAAAFQDew7fTib7y3CjZoo8vNNTOJgiCNQAAAIB6vFrrYjhLHBr90Gg/Uet1i7PK

XvZRuhhoYLox9qKZiqK8/1vyv6CQFWLu9fDdNXxxqvRnjrYrb3LwveZo8VboqCwQ

Rb/6hLcaw684zEn6c10DmQOMHeVI5sIRgWTgvnPL/iWIN+JqVsZgDAo5TnbdyUyE

nPF3i9GzV8mSFRFNwwAAAIEAt7UcoRLGctv3hCrIuQH8kOMPj71tkNUEvgCinCun

WXKPFOm4Nsr1D5TAO5FmAuMN1R1NB4JAJuG+Q/0untTgPGPKqQWoK7OjzB2Nfm8j

Jy7zw1y5oKL0dSy2/bWyWKfntPXGCQJDLVbymw8XcxSNH2dmrSJvM/o1XcyWGiqp

hJ0=

Private-Lines: 1

REMz0QKEBP9nXRPEGCe9r1uHOnzJZ8q9jiIMoazeJtc=

Private-MAC: be00aa5b0233417b8c666ea06ea1267c4ac369ad

 

 

shoudl i be removing new lines  ????

ok i figured it out, so:

 

working with a windows workstation box and a *nix server

 

1. generate the keys on your server using " ssh-keygen -t dsa " this will store the keys in your .ssh folder, copy the created public key into your known_hosts file

 

2. copy the private key and bring it down onto your workstation into a file and load it into putty and let it convert then save it as something.

 

3. in your IDE define teh converted output file as the known hosts file for the connection.

 

 

 

  • 4 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.