how to connect google instance via putty ??

830 views
Skip to first unread message

keremsah sarialtin

unread,
Oct 19, 2017, 7:31:50 PM10/19/17
to gce-discussion

it is long story but to cut short I need to reset plesk admin password, which you cant reset from forget password to do that, I loged to SSH then I became root - sudo su command then I applied sudo passwd to create root password then to reveal plesk password /usr/local/psa/bin/admin --show-password - nothing happened plesk bin admin --set-admin-password -passwd new_password --nothing happen

I thought connecting via putty to instance as root might help to do that I have to create public key which I did via putty key generator.

I applied ssh-keygen command in SSH I gave a passphrase I got result as Your identification has been saved in root-ssh-key.

here comes the question open putty type ip adress when login as comes I type root then this error comesup Disconnected: no supported authentication methods available ( blablabla )http://prntscr.com/gzkgbf

so how can I connect via putty as root to instance ???

Fady (Google Cloud Platform)

unread,
Oct 20, 2017, 6:18:44 PM10/20/17
to gce-discussion

If you want to configure the putty client to connect to the VM, you may follow the steps on this article [1]. Basically you will need to: 

1. Generate SSH key Pair, if using the Putty keygen method, make sure to make note of the username in “key comment”, as it is the username you would use in step 4.
2. Attach the private key to Putty.
3. You may have to verify the format of the public key, and it should look like either of these formats:

ssh-rsa [KEY_VALUE] google-ssh {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}
ssh-rsa [KEY_VALUE] [USERNAME]

4. Attach (copy/paste) the public key as a metadata to either the project using this link [2] so you would use the same key to SSH to all instances in your project, or attach the metadata to one instance by editing the instance you want to SSH to. 

In your case, it seems that you were able to generate the key pair, but you could be having trouble attaching the SSH public key metadata as a project wide key or an instant-specific key.

Furthermore, whether you use Putty or SSH from the console [3], you would be still logged in as a non-privileged user, and will not have elevated privileges, this is by default. On the other hand, Putty has no power over the operating system. Hence, utilizing Linux commands [4] in order to gain superuser privileges, you may use this command “ sudo su” and you would be the super user. 

As for your concern about resetting your admin password for Plesk, please check your previous question at this thread [5], as I have already answered it there. 

I hope this helps.

Reply all
Reply to author
Forward
0 new messages