Steps for
two way authentication with Bitvise/putty ssh
client on windows/Linux
Step 1 : Install ssh bitvise/putty client on windows/linux
Step 2 : Open client key manager .Generate New key , Export Public key . save on
PC
install puttygen in generate new key browse the private key.
install puttygen in generate new key browse the private key.
Step 3 : Go to
digital ocean panel open console go to the
file to past public key
~/.ssh/authorized_keys
file to past public key
Step 4 : Console move to new Tab on browser , go to browser setting and open web console
of same new tab where we open digital
ocean console.
Step 5 : Copy
past below script on console of browser
// This will
open up a prompt for text to send to a console for long passwords
(function ()
{
var t = prompt("Enter text to be
sent to console, (This wont send the enter
keystroke)").split("");
function f() {
var character = t.shift();
var i=[];
var code =
character.charCodeAt();
var needs_shift =
"!@#$%^&*()_+{}:\"<>?~|".indexOf(character) !== -1
var shift = XK_Shift_L; // To help with
minification
function key(keycode, down) {
i=i.concat(RFB.messages.keyEvent(keycode, down));
}
if (needs_shift) {
key(shift,1);
}
key(code,1);
key(code,0);
if (needs_shift) {
key(shift,0);
}
rfb._sock.send(i);
if (t.length > 0) {
setTimeout(f, 10);
}
}
f();
})();
Step 6) go
to bitvise/putty ssh client login give user name and initiate with password or
private key.
And GET CONNECTED