Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Allow passing custom arguments to gardenctl ssh <gcp_node> #420

Closed
dansible opened this issue Oct 29, 2020 · 2 comments · Fixed by #423
Closed

Allow passing custom arguments to gardenctl ssh <gcp_node> #420

dansible opened this issue Oct 29, 2020 · 2 comments · Fixed by #423
Assignees

Comments

@dansible
Copy link
Contributor

It would be great to be able to run commands on the remote host (ie gardenctl ssh to <gcp_node> echo true && exit)

@tedteng
Copy link
Contributor

tedteng commented Nov 2, 2020

 gg ssh shoot--i333878--az-az-001-worker-bt6i6-z3-65ff4-tvpdb exit

Warning:
Be aware that you are entering an untrusted environment!
Do not enter credentials or sensitive data within the ssh session that cluster owners should not have access to.

Downloaded id_rsa key
Check Public IP

(1/4) Fetching data from target shoot cluster
Standard
Data fetched from target shoot cluster.

(2/4) Configuring Azure
Opened SSH Port.

Create public ip
20.67.152.170
Waiting 5 s until public ip is available.

Add public ip to nic

Waiting 30 seconds until ports are open.
(3/4) Establishing SSH connection

Warning: Permanently added '20.67.152.170' (ED25519) to the list of known hosts.

(4/4) Cleanup

  (1/3) Remove SSH rule

  (2/3) Remove public ip from nic

  (3/3) Delete public ip

Configuration successfully cleaned up.

@tedteng
Copy link
Contributor

tedteng commented Nov 2, 2020

gg ssh shoot--i333878--az-az-001-worker-bt6i6-z3-65ff4-tvpdb ls /tmp

Warning:
Be aware that you are entering an untrusted environment!
Do not enter credentials or sensitive data within the ssh session that cluster owners should not have access to.

Downloaded id_rsa key
Check Public IP

(1/4) Fetching data from target shoot cluster
Standard
Data fetched from target shoot cluster.

(2/4) Configuring Azure
Opened SSH Port.

Create public ip
20.67.153.119
Waiting 5 s until public ip is available.

Add public ip to nic

Waiting 30 seconds until ports are open.
(3/4) Establishing SSH connection

Warning: Permanently added '20.67.153.119' (ED25519) to the list of known hosts.
systemd-private-797de8692c7e4d4eaa64d24bf5bc7104-systemd-logind.service-wQ0o1e
systemd-private-797de8692c7e4d4eaa64d24bf5bc7104-systemd-resolved.service-iH8Teg
systemd-private-797de8692c7e4d4eaa64d24bf5bc7104-systemd-timesyncd.service-OpQwgi

(4/4) Cleanup

  (1/3) Remove SSH rule

  (2/3) Remove public ip from nic

  (3/3) Delete public ip

Configuration successfully cleaned up.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants