ssh - copy key pair to amazon -


i have run trouble

i have ec2 instance. connected via ssh. wanted set post hook git. , accidentally removed authorised_keys /.ssh directory

my question : if still connected aws instance can copy mykey.pem /.ssh directory ?

i want omit instance restore process

thank in advance !))

if can't find public key corresponds current .pem file, generate new key pair, , add public key ~/.ssh/authorized_keys file! use aws generate new key pair, or check out these popular instructions github: help.github.com/articles/generating-ssh-keys.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -