35 | | readyToLogin.py -a pg-utah <slicename> > login.out 2>&1 |
36 | | }}} |
37 | | |
38 | | You'll get a big chunk of information, but you're interested in the '''ssh configuration info''' information near the end. |
39 | | |
40 | | {{{ |
41 | | ... <lots of output> ... |
42 | | ================================================================================ |
43 | | SSH CONFIGURATION INFO for User inki |
44 | | ================================================================================ |
45 | | |
46 | | Host left |
47 | | Port 30778 |
48 | | HostName pc403.emulab.net |
49 | | User inki |
50 | | IdentityFile /home/geni/.ssh/geni_key |
51 | | |
52 | | Host hostB |
53 | | Port 30779 |
54 | | HostName pc490.emulab.net |
55 | | User inki |
56 | | IdentityFile /home/geni/.ssh/geni_key |
57 | | |
58 | | Host hostA |
59 | | Port 30778 |
60 | | HostName pc545.emulab.net |
61 | | User inki |
62 | | IdentityFile /home/geni/.ssh/geni_key |
63 | | |
64 | | Host bottom |
65 | | Port 30778 |
66 | | HostName pc490.emulab.net |
67 | | User inki |
68 | | IdentityFile /home/geni/.ssh/geni_key |
69 | | |
70 | | Host right |
71 | | Port 30778 |
72 | | HostName pc411.emulab.net |
73 | | User inki |
74 | | IdentityFile /home/geni/.ssh/geni_key |
75 | | |
76 | | Host top |
77 | | Port 30779 |
78 | | HostName pc545.emulab.net |
79 | | User inki |
80 | | IdentityFile /home/geni/.ssh/geni_key |
81 | | |
82 | | ...<more output>... |
83 | | }}} |
84 | | |
85 | | Copy all the above information and paste it into your `.ssh/config` file, then you can very easily login into your nodes, just by using the nickname (client_id) of the nodes. |
86 | | |
87 | | Your `~/.ssh/config` file should look like |
88 | | {{{ |
89 | | IdentityFile /home/geni/.ssh/geni_key |
90 | | Host left |
91 | | Port 30778 |
92 | | HostName pc403.emulab.net |
93 | | User inki |
94 | | IdentityFile /home/geni/.ssh/geni_key |
95 | | |
96 | | Host hostB |
97 | | Port 30779 |
98 | | HostName pc490.emulab.net |
99 | | User inki |
100 | | IdentityFile /home/geni/.ssh/geni_key |
101 | | |
102 | | Host hostA |
103 | | Port 30778 |
104 | | HostName pc545.emulab.net |
105 | | User inki |
106 | | IdentityFile /home/geni/.ssh/geni_key |
107 | | |
108 | | Host bottom |
109 | | Port 30778 |
110 | | HostName pc490.emulab.net |
111 | | User inki |
112 | | IdentityFile /home/geni/.ssh/geni_key |
113 | | |
114 | | Host right |
115 | | Port 30778 |
116 | | HostName pc411.emulab.net |
117 | | User inki |
118 | | IdentityFile /home/geni/.ssh/geni_key |
119 | | |
120 | | Host top |
121 | | Port 30779 |
122 | | HostName pc545.emulab.net |
123 | | User inki |
124 | | IdentityFile /home/geni/.ssh/geni_key |
125 | | |
126 | | }}} |
127 | | |
| 35 | readyToLogin.py -a pg-utah <slicename> -o |
| 36 | }}} |
| 37 | |
| 38 | This will save all the information to different files. We want to use the ssh configuration file that the script produced: |
| 39 | {{{ |
| 40 | mv ./sshconfig.txt ~/.ssh/config |
| 41 | }}} |