Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 months 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-13T20:58:23.000Z (over 5 years ago)
- Last Synced: 2024-08-02T06:13:03.526Z (6 months ago)
- Topics: kubectl, kubectl-plugins, kubernetes
- Language: Shell
- Size: 3.91 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-kubectl-plugins - kubectl-ssh
README
## kubectl ssh
ssh into a pod's node
[![asciicast](https://asciinema.org/a/lNy3cRCPFGwDM26UBQYmfNKYT.svg)](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`