nadeem Posted June 1, 2010 Share Posted June 1, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/203499-ssh-ftp-and-ide-netbeans-freebsd/ Share on other sites More sharing options...
trq Posted June 1, 2010 Share Posted June 1, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/203499-ssh-ftp-and-ide-netbeans-freebsd/#findComment-1066066 Share on other sites More sharing options...
nadeem Posted June 1, 2010 Author Share Posted June 1, 2010 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 ? Quote Link to comment https://forums.phpfreaks.com/topic/203499-ssh-ftp-and-ide-netbeans-freebsd/#findComment-1066067 Share on other sites More sharing options...
nadeem Posted June 1, 2010 Author Share Posted June 1, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/203499-ssh-ftp-and-ide-netbeans-freebsd/#findComment-1066069 Share on other sites More sharing options...
nadeem Posted June 1, 2010 Author Share Posted June 1, 2010 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 ???? Quote Link to comment https://forums.phpfreaks.com/topic/203499-ssh-ftp-and-ide-netbeans-freebsd/#findComment-1066072 Share on other sites More sharing options...
nadeem Posted June 1, 2010 Author Share Posted June 1, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/203499-ssh-ftp-and-ide-netbeans-freebsd/#findComment-1066145 Share on other sites More sharing options...
trq Posted June 1, 2010 Share Posted June 1, 2010 Your keys go into the .ssh/authorized_keys file NOT .ssh/known_hosts. Quote Link to comment https://forums.phpfreaks.com/topic/203499-ssh-ftp-and-ide-netbeans-freebsd/#findComment-1066368 Share on other sites More sharing options...
nadeem Posted June 28, 2010 Author Share Posted June 28, 2010 Your keys go into the .ssh/authorized_keys file NOT .ssh/known_hosts. i got it working, hopefully it will be easier in teh future, tehres too many complicated factors for its worth with non critical apps Quote Link to comment https://forums.phpfreaks.com/topic/203499-ssh-ftp-and-ide-netbeans-freebsd/#findComment-1078333 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.