maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   QT Creator + Madde - > Howto get the ssh key (https://talk.maemo.org/showthread.php?t=46929)

eitama 2010-03-09 15:25

QT Creator + Madde - > Howto get the ssh key (Solved)
 
1 Attachment(s)
Hello guys,

(Solution at the end of this very post)

I started developing on windows with QTCreator and Madde,
It's nice and easy - Could be better, but a lot better then scratchbox and esbox.

Anyway, one of the steps to allow compiling and testing directly on the phone is starting the "mad developer" client and generating a password.

In the QTCreator + Madde guide, there is a tip that says, I can put in the ssh key which will allow me to always test on the phone without the need to start that app and generate the password.

Anyone knows how I generate the id_rsa file to put into QTCreator?

Edit : Added reference to my source.
From : http://wiki.maemo.org/MADDE/QtCreato...on_for_windows

Quote:

Tip You can use your ssh key for the connection. Click on "Deploy Key ..." and select your key. If the other settings are correct the key will be automatically deployed on your device, so that you don't have to worry about the passwords anymore.
Attachment 7973

Edit : A very nice member - postformac - , who has been helping me lately, has done it again, and came through with exact steps : (This appears below in his post, but to make it easier instead of going through the whole thread... + it can be locked.)

(Originally by postformac):
Quote:

1. Open up MADDE terminal in Windows. (In Start > Programs > MADDE > MADDE terminal)
2. type "cd /"
3. Type "ssh-keygen -t rsa"
4. Pick a name for your key (I just called mine rsa1)
5. Pick a password if you want one (I left it blank so no password)
6. In Qt click "deploy key" and browse to where the key is (MADDE\MADDE_VERSION\home\<username>\.ssh)
7. Select your_key_name.pub file
8. Qt should say key sucessfully deployed
9. Change "Authentication Type" option in Qt to "key"
10. In the Private Key file entry at the same window, browse for the 2nd file generated at step 3. "id_rsa"
11. Click "Test" in Qt to check it works properly
Note : These steps can only be done after following all the steps in the tutorial linked above. Edit2 : Added the steps to the tutorial.

Cheers.

eitama 2010-03-09 16:21

Re: QT Creator + Madde - > Howto get the ssh key
 
Bump :(

postformac 2010-03-09 16:38

Re: QT Creator + Madde - > Howto get the ssh key
 
This is what I did, not sure if it is the correct way but it works ok for me:

1. Open up MADDE terminal in Windows.
2. Type "ssh-keygen -t rsa"
3. Pick a name for your key (I just called mine rsa1)
4. Pick a password if you want one (I left it blank so no password)
4. In Qt click "deploy key" and browse to where the key is (MADDE/home/<username>)
5. Select your_key_name.pub file
6. Qt should say key sucessfully deployed
7. Change "Authentication Type" option in Qt to "key"
8. Click "Test" in Qt to check it works properly

shiny 2010-03-09 16:39

Re: QT Creator + Madde - > Howto get the ssh key
 
I have managed to do this, but don't have the exact info at my fingertips. Assuming you've generated a SSH key for the command-line version of MADDE, then I think you can find it in the

c:/madde/0.6.14/home/<yourusername>/.ssh

folder or thereabouts.

eitama 2010-03-09 16:43

Re: QT Creator + Madde - > Howto get the ssh key
 
Quote:

Originally Posted by postformac (Post 561406)
This is what I did, not sure if it is the correct way but it works ok for me:

1. Open up MADDE terminal in Windows.
2. Type "ssh-keygen -t rsa"
3. Pick a name for your key (I just called mine rsa1)
4. Pick a password if you want one (I left it blank so no password)
4. In Qt click "deploy key" and browse to where the key is (MADDE/home/<username>)
5. Select your_key_name.pub file
6. Qt should say key sucessfully deployed
7. Change "Authentication Type" option in Qt to "key"
8. Click "Test" in Qt to check it works properly

Aha!!!

Will try it at home very soon.
Thank you fella!

cjard 2010-03-09 22:00

Re: QT Creator + Madde - > Howto get the ssh key
 
THanks for this.. i was using windows puttygen, but I couldnt get the keys I was making, to install..

eitama 2010-03-10 07:28

Re: QT Creator + Madde - > Howto get the ssh key
 
Fixed original post to include the information suggested by members that solved my problem, anyone who needs it, go the the 1st post in this thread.

rontti 2010-03-10 13:31

Re: QT Creator + Madde - > Howto get the ssh key
 
Quote:

Originally Posted by postformac (Post 561406)
This is what I did, not sure if it is the correct way but it works ok for me:

1. Open up MADDE terminal in Windows.
2. Type "ssh-keygen -t rsa"
3. Pick a name for your key (I just called mine rsa1)
4. Pick a password if you want one (I left it blank so no password)
4. In Qt click "deploy key" and browse to where the key is (MADDE/home/<username>)
5. Select your_key_name.pub file
6. Qt should say key sucessfully deployed
7. Change "Authentication Type" option in Qt to "key"
8. Click "Test" in Qt to check it works properly

Another way.

1. Open up MADDE terminal in Windows.
2. mad-admin create runtime n900 <ip-addres>

Step 2. creates keys and install your public key into the device.

eitama 2010-03-10 13:34

Re: QT Creator + Madde - > Howto get the ssh key
 
Quote:

Originally Posted by rontti (Post 562510)
Another way.

1. Open up MADDE terminal in Windows.
2. mad-admin create runtime n900 <ip-addres>

Step 2. creates keys and install your public key into the device.

You will still need to choose the private key inside QTCreator though right?

rontti 2010-03-10 13:42

Re: QT Creator + Madde - > Howto get the ssh key
 
Quote:

Originally Posted by eitama (Post 562513)
You will still need to choose the private key inside QTCreator though right?

I'm not tried QTCreator but I think that you have to.

eitama 2010-03-10 13:55

Re: QT Creator + Madde - > Howto get the ssh key
 
Quote:

Originally Posted by rontti (Post 562523)
I'm not tried QTCreator but I think that you have to.

Well, thx for sharing the 2nd method of doing this,
For those doing this for QTCreator, the instructions I added in the wiki and the original post will do :)


All times are GMT. The time now is 22:21.

vBulletin® Version 3.8.8