1
- edocker
1
+
2
2
` bash runlocaldocker2.sh `
3
3
```
4
- ]0;root@ip-10-0-4-156: /opt/agentroot@ip-10-0-4-156:/opt/agent# git pull
5
- gcodeit pull
4
+
5
+ root@ip-10-0-4-156:/opt/agent# git pull
6
+ git pull
6
7
remote: Enumerating objects: 4, done.
7
8
remote: Counting objects: 100% (4/4), done.
8
9
remote: Total 4 (delta 3), reused 4 (delta 3), pack-reused 0 (from 0)
@@ -14,7 +15,7 @@ Fast-forward
14
15
notes.org | 38 ++++++++++++++++++++++++++++++++++++++
15
16
runlocaldocker2.sh | 3 ++-
16
17
2 files changed, 40 insertions(+), 1 deletion(-)
17
- ]0; root@ip-10-0-4-156: /opt/agentroot @ip-10-0-4-156:/opt/agent# bash ./runlocaldocker2.sh
18
+ root@ip-10-0-4-156:/opt/agent# bash ./runlocaldocker2.sh
18
19
bash ./runlocaldocker2.sh
19
20
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
20
21
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
@@ -367,12 +368,18 @@ python ./ssh-ssm.py
367
368
368
369
## local git
369
370
371
+ * tunnel to aws
372
+
373
+ 1 . we can use this from cheaper hosting to create connections to aws, for ssm parameters.
374
+ 2 . and for git
375
+ 3 . allow you to share resources with agents from pc or phone
376
+
377
+
370
378
```
371
- mkdir -p /opt/git/agent
372
- git init /opt/git/agent/
373
- git remote add local /opt/git/agent/.git/
374
- git commit -m 'readme' -a
375
- git push local
376
- chown ubuntu: -R /opt/git/agent/
377
- history >> hist
379
+ python ./ssh-ssm.py
380
+ ```
381
+ ```
382
+ aws ssm start-session --target i-06a744b2cf12e2356 --document-name AWS-StartPortForwardingSession --parameters '{"portNumber": ["22"], "localPortNumber": ["2222"]}'
378
383
```
384
+
385
+
0 commit comments