Reply
Thread Tools
eitama's Avatar
Posts: 702 | Thanked: 334 times | Joined on Feb 2010 @ Israel.
#1
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

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.
Name:  Deploy Key.jpg
Views: 1475
Size:  24.2 KB

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):
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.

Last edited by eitama; 2010-03-10 at 07:36. Reason: Put solution into first post.
 

The Following 3 Users Say Thank You to eitama For This Useful Post:
eitama's Avatar
Posts: 702 | Thanked: 334 times | Joined on Feb 2010 @ Israel.
#2
Bump
 
Posts: 24 | Thanked: 12 times | Joined on Mar 2010
#3
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
 

The Following 3 Users Say Thank You to postformac For This Useful Post:
shiny's Avatar
Posts: 147 | Thanked: 53 times | Joined on Dec 2009 @ West London, UK
#4
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's Avatar
Posts: 702 | Thanked: 334 times | Joined on Feb 2010 @ Israel.
#5
Originally Posted by postformac View Post
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!
 
Posts: 225 | Thanked: 64 times | Joined on Feb 2010
#6
THanks for this.. i was using windows puttygen, but I couldnt get the keys I was making, to install..
 
eitama's Avatar
Posts: 702 | Thanked: 334 times | Joined on Feb 2010 @ Israel.
#7
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.
 
Posts: 62 | Thanked: 97 times | Joined on Dec 2009 @ Finland, Kerava
#8
Originally Posted by postformac View Post
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's Avatar
Posts: 702 | Thanked: 334 times | Joined on Feb 2010 @ Israel.
#9
Originally Posted by rontti View Post
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?
 
Posts: 62 | Thanked: 97 times | Joined on Dec 2009 @ Finland, Kerava
#10
Originally Posted by eitama View Post
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.
 
Reply


 
Forum Jump


All times are GMT. The time now is 09:10.