https://github.com/IuryAlves/kubectl-ssh
A kubectl plugin to ssh into a pod's node
https://github.com/IuryAlves/kubectl-ssh
kubectl kubectl-plugins kubernetes
Last synced: 15 days ago
JSON representation
A kubectl plugin to ssh into a pod's node
- Host: GitHub
- URL: https://github.com/IuryAlves/kubectl-ssh
- Owner: IuryAlves
- License: mit
- Created: 2019-07-13T15:40:02.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-13T20:58:23.000Z (almost 6 years ago)
- Last Synced: 2024-11-02T05:33:00.079Z (5 months ago)
- Topics: kubectl, kubectl-plugins, kubernetes
- Language: Shell
- Size: 3.91 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-kubectl-plugins - kubectl-ssh - ssh)](https://github.com/IuryAlves/kubectl-ssh/stargazers) | (kubectl Plugins / Installing plugins via awesome-kubectl-plugins)
README
## kubectl ssh
ssh into a pod's node
[](https://asciinema.org/a/lNy3cRCPFGwDM26UBQYmfNKYT)
### Installing
**Important: kubectl 1.15 or greater is required**
```
curl -fsS -o /usr/local/bin/kubectl-ssh \
https://raw.githubusercontent.com/IuryAlves/kubectl-ssh/master/kubectl-ssh && \
chmod +x /usr/local/bin/kubectl-ssh
```**make sure that `/usr/local/bin` is in your path.**
### Usage
* Basic usage:
```
kubectl ssh
```* Ssh into node using specific ssh-user
```
kubectl ssh --user=root```
This is equivalent to `ssh root@`
* Ssh into node using specific ssh-key
```
kubectl ssh -i /path/to/my/indetity-file
```This is equivalent to: `ssh -i /path/to/my/indetity-file`