Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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`