{"id":13521818,"url":"https://github.com/marjamis/kubectl-kcn","last_synced_at":"2026-01-05T19:58:53.608Z","repository":{"id":163968003,"uuid":"137421549","full_name":"marjamis/kubectl-kcn","owner":"marjamis","description":"A script and kubectl plugin which makes it easier to ssh into nodes within your cluster.","archived":false,"fork":false,"pushed_at":"2020-05-19T04:32:40.000Z","size":13,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-02T06:13:03.480Z","etag":null,"topics":["kubectl","kubectl-plugins","kubernetes"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marjamis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-06-15T00:11:10.000Z","updated_at":"2020-05-19T04:32:42.000Z","dependencies_parsed_at":"2024-01-13T22:23:32.678Z","dependency_job_id":"e943f912-95e0-4431-8907-18c7f92d3054","html_url":"https://github.com/marjamis/kubectl-kcn","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marjamis%2Fkubectl-kcn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marjamis%2Fkubectl-kcn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marjamis%2Fkubectl-kcn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marjamis%2Fkubectl-kcn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marjamis","download_url":"https://codeload.github.com/marjamis/kubectl-kcn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222683212,"owners_count":17022461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kubectl","kubectl-plugins","kubernetes"],"created_at":"2024-08-01T06:00:38.305Z","updated_at":"2026-01-05T19:58:53.602Z","avatar_url":"https://github.com/marjamis.png","language":"Shell","funding_links":[],"categories":["kubectl Plugins"],"sub_categories":["Installing plugins via awesome-kubectl-plugins"],"readme":"# kubectl-kcn\nA kubectl plugin which makes it simple to ssh into nodes within your cluster.\n\n### Requirements\n* bash\n* ssh\n* kubectl\n* [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/installing.html)\n* This [script](./kubectl-n)\n\nThis script heavily relies on your [ssh_config](https://linux.die.net/man/5/ssh_config) to determine how the connections are made to the nodes which allows you to easily connect to the nodes based on your unique networking configuration.\n\nThis is made simpler by flags which will allow you to select what value is passed into the ssh command, i.e. hostname/nodename, private-ip (as registered to k8s) or public-ip (obtained using AWS API calls).\n\n### How to use\nInstall the plugin by having the [script](./kubectl-n) in the $PATH of your shell. Once in the $PATH run:\n```bash\nkubectl plugin list\n```\nto ensure kubectl can find the plugin and it will use it. Once properly in place the plugin can be used by running:\n```bash\nkubectl n [options] [node]\n```\nFor a complete list of options run:\n```bash\nkubectl n -h\n```\n\nMore information about kubectl plugins in general can be found here: https://kubernetes.io/docs/tasks/extend-kubectl/kubectl-plugins/\n\n### Samples\nSample ~/.ssh/config file:\n```bash\n# Defaults\nHost *\n  ServerAliveInterval 120\n  ServerAliveCountMax 30\n  Compression yes\n  LogLevel INFO\n  VisualHostKey yes\n\nHost bastion\n  HostName bastion.example.com\n  User ec2-user\n  IdentityFile ~/.ssh/bastion_private_key.pem\n\nHost *.us-west-2.compute.internal\n  IdentityFile ~/.ssh/node_private_key.pem\n  User ec2-user\n  ProxyCommand ssh bastion -W %h:%p\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarjamis%2Fkubectl-kcn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarjamis%2Fkubectl-kcn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarjamis%2Fkubectl-kcn/lists"}