Syntax: 1kubectl exec --stdin --tty <pod_name> -- /bin/bash Example, with the following pods 1me@example:~$ kubectl get pod 2NAME READY STATUS RESTARTS AGE 3cert-manager-cainjector-68c88cc858-c2rhx 1/1 Running 0 109m 4cert-manager-d76d644df-pgqn9 1/1 Running 0 109m 5cert-manager-webhook-6dd68c6fbc-rzcln 1/1 …
Read MoreCheck first the names of your container: 1docker ps Technically though, it's just running a shell, so run as follows: 1docker exec -it <container-name> /bin/bash In case you see this error: 1OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "exec: …
Read MoreIf you need to rsync those hidden directories or files starting with dot, do it something like below (note the trailing /) 1rsync -avz -e ssh --progress user@source-server:/somedirA/ somedirB/ See https://stackoverflow.com/questions/9046749/rsync-not-synchronizing-htaccess-file
Read More1$ openssl rsa -aes256 -in ./id_rsa -out ./id_rsa.hashed 2writing RSA key 3Enter PEM pass phrase: 4Verifying - Enter PEM pass phrase: You should then use './id_rsa.hashed' as your private key. See https://security.stackexchange.com/questions/59136/can-i-add-a-password-to-an-existing-private-key for details.
Read MoreNoticed this one in a compromised machine by a cryptocurrency(monero) miner: 1icasimpan@example-prod:~$ scp wp.example.com-HTMLonly.tgz icasimpan@another-example.info:~/ 2command-line: line 0: Bad configuration option: PermitLocalCommand 3lost connection Fix was to remove and re-install openssh-server 1sudo apt-get …
Read MoreIf you see a public key like below, chances are, it's generated using PuttyGen in Windows. 1---- BEGIN SSH2 PUBLIC KEY ---- 2Comment: "rsa-key-20200101" 3AAAAB3NzaC1yc2EAAAABJQAAAQEArPVm4pY6eNaXFay32YHRdu96PXcwmhzGEWhK 4jmNRt2qWs39vbM/ZCQ7I8aKcgZJ6r35wInWpaqOH2xE0Jzx1rbC0aY+66KnPSFXZ …
Read More1ssh -i ./server-keys.ppk -o PubkeyAuthentication=yes -o PasswordAuthentication=no deps@104.129.111.150 Some details in https://unix.stackexchange.com/questions/15138/how-to-force-ssh-client-to-use-only-password-auth Tested in: OpenSSH_7.4p1, OpenSSL 1.0.2k-fips
Read More1[icasimpan@icasimpan ~]$ ssh icasimpan@204.48.29.45 2The authenticity of host '204.48.29.45 (204.48.29.45)' can't be established. 3ECDSA key fingerprint is SHA256:/g89dBppp6ir72D3dUvHFm4de2k3NPtYKOOfNkUkFQQ. 4ECDSA key fingerprint is MD5:58:41:92:ed:e1:55:52:3f:69:6a:e5:27:7a:dd:98:6a. 5Are you sure you …
Read MoreSample 1icasimpan-local:~ icasimpan$ ssh root@99.206.157.36 2@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 3@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ 4@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 5IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! 6Someone could be …
Read More1ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub See details in https://askubuntu.com/questions/53553/how-do-i-retrieve-the-public-key-from-a-ssh-private-key
Read More