yokawasa / kubectl-plugin-ssh-jump

A kubectl plugin to access nodes or remote services using a SSH jump Pod
Apache License 2.0
176 stars 18 forks source link

what is the default password? #10

Closed caliburn1994 closed 2 years ago

caliburn1994 commented 3 years ago
  1. Clean all the things.
    
    $ kubectl ssh-jump minikube -u myuser -i ~/.ssh/id_rsa -p ~/.ssh/id_rsa.pub   --cleanup-jump  --cleanup-agent
    using: port=22
    Agent pid 1968168
    ssh-agent is already running
    Forwarding from 127.0.0.1:2222 -> 22
    Forwarding from [::1]:2222 -> 22
    Handling connection for 2222
    Enter passphrase for key '/home/xiaojie/.ssh/id_rsa': 
    root@127.0.0.1: Permission denied (publickey).
    kex_exchange_identification: Connection closed by remote host
    Clearning up SSH Jump host (Pod)...
    pod "sshjump" deleted

Killing ssh-agent... unset SSH_AUTH_SOCK; unset SSH_AGENT_PID;


2. reset keys

all is 'enter'

$ ssh-keygen -t rsa


3.  re-deploy

$ kubectl ssh-jump minikube -u myuser -i ~/.ssh/id_rsa -p ~/.ssh/id_rsa.pub using: port=22 Started ssh-agent: pid=1998827 Agent pid 1998827 Identity added: /home/xiaojie/.ssh/id_rsa (xiaojie@xiaojie-ubuntu) Creating SSH jump host (Pod)... pod/sshjump created Forwarding from 127.0.0.1:2222 -> 22 Forwarding from [::1]:2222 -> 22 Handling connection for 2222 myuser@minikube's password: Permission denied, please try again. myuser@minikube's password: Permission denied, please try again. myuser@minikube's password: myuser@minikube: Permission denied (publickey,password).



what is the password of  `myuser`?
yokawasa commented 2 years ago

@caliburn1994 I'm sorry for very very late reply.

what is the password of myuser?

the pasword you need to give is the one you typed in generating public/private rsa key pair. hope it would answer your question

yokawasa commented 2 years ago

i'll be closing the issue. Please feel free to open the issue if you have any question. Thanks!