Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kvaps/kubectl-ssh
Tiny plugin for connecting to node in the cluster over SSH
https://github.com/kvaps/kubectl-ssh
kubectl-plugin kubectl-plugins ssh
Last synced: 17 days ago
JSON representation
Tiny plugin for connecting to node in the cluster over SSH
- Host: GitHub
- URL: https://github.com/kvaps/kubectl-ssh
- Owner: kvaps
- License: apache-2.0
- Created: 2019-03-15T14:30:41.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-15T14:43:19.000Z (almost 6 years ago)
- Last Synced: 2024-11-02T06:30:50.674Z (2 months ago)
- Topics: kubectl-plugin, kubectl-plugins, ssh
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-kubectl-plugins - kvaps kubectl-ssh
README
# kubectl-ssh
Tiny plugin for connecting to node in the cluster over SSH.
## Features
* Getting IP-address of the node from the API.
* Setting username and ssh options per context.## Installation
```bash
curl -LO https://github.com/kvaps/kubectl-ssh/raw/master/kubectl-ssh
chmod +x ./kubectl-ssh
sudo mv ./kubectl-ssh /usr/local/bin/kubectl-ssh
```## Usage
```bash
kubectl ssh
```## Configuration
```bash
# Set username
echo 'USERNAME=user' >> ~/.kube/ssh-config# Set options
echo 'SSH_OPTIONS="-o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"' >> ~/.kube/ssh-config# Set username for specific context
echo 'STAGE_USERNAME=user' >> ~/.kube/ssh-config# Set options for specific context
echo 'STAGE_SSH_OPTIONS="-o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"' >> ~/.kube/ssh-config
```