Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-LAB-HELP
-
HD-Node:Spain
Description
Created question in FIWARE Q/A platform on 30-11-2014 at 11:11
Please, ANSWER this question AT http://stackoverflow.com/questions/27212465/rex-and-identity-files
Question:
Rex and identity files
Description:
I'm trying to configure a fi-ware cloud instance using Rex. What these instances (and probably other OpenStack-based systems) prove is a "identity file", a single private key that you can use to connect to them. I have been using variations of this:
user "root";
private_key "/home/jmerelo/.ssh/jj-iv.pem";
public_key "/home/one/public/key.dsa";
key_auth;
group fiware => "130.206.x.y";
desc "Install git";
task "git", group => "fiware", sub {
install "git";
};
where the private key is the one provided by fi-ware, and the public key is, well, whatever I thought of, or nothing.
If no public key is provided, error is
[2014-11-30 11:45:45] WARN - Error running task/batch: No public_key file defined. at /home/jmerelo/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20.0/Rex/Task.pm line 621.
at /home/jmerelo/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20.0/Rex/TaskList/Base.pm line 273.
which is quite obviously true. But if I try other public keys, error is:
[2014-11-30 11:48:37] WARN - Error running task/batch: Wrong username/password or wrong key on 130.206.127.211. Or root is not permitted to login over SSH. at /home/jmerelo/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20.0/Rex/TaskList/Base.pm line 273.
Using
ssh -i ~/.ssh/jj-iv.pem root@130.206.x.y
connects correctly to the instance. So maybe the question is "Can Rex use a single private key to connect to a host?"
Activity
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
2h 59m | 1 | Backlog Manager | 05/Nov/15 6:04 AM | |||||
|
2h 59m | 1 | Backlog Manager | 05/Nov/15 9:04 AM | |||||
|
4d 8h 28m | 1 | Manuel Escriche | 09/Nov/15 5:33 PM |
Fix Version/s | 2021 [ 12600 ] |
Summary | [fiware-stackoverflow] Rex and identity files | FIWARE.Question.Lab.Spain.Rex and identity files |
HD-Node | Spain [ 10846 ] |
Component/s | FIWARE-LAB-HELP [ 10279 ] | |
Component/s | FIWARE-TECH-HELP [ 10278 ] |
Assignee | Fernando Lopez [ fla ] |
Resolution | Done [ 10000 ] | |
Status | Answered [ 10104 ] | Closed [ 6 ] |
Status | In Progress [ 3 ] | Answered [ 10104 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Field | Original Value | New Value |
---|---|---|
Component/s | FIWARE-TECH-HELP [ 10278 ] |
2015-11-05 09:05|UPDATED status: transition Answered| # answers= 1, accepted answer= True