Skip to main content

Hello All ,

while we  trying to set IFS 23R1 on GCP cloud we are getting error  below error no steps when we need to create SSH key for remote access.

 

Any pointer to resolve this error, we have updated the etc/hosts file also update  the main.ps1 as we are not using 22 port but still below error shown its picking port 22 only..

 

D:\ifsroot\utils\..\config\secrets\.ssh\gmu-co-ab__com_id_rsa already exists.
Overwrite (y/n)? y
processed file: D:\ifsroot\utils\..\config\secrets\.ssh\gmu-co-ab__com_id_rsa
Successfully processed 1 files; Failed processing 0 files
Adding Public Key to Linux Box
ssh: connect to host gmu-co-ab__com_id  port 22: Connection refused
Excution Failed: Error occured when adding Public Key to Linux BoX.
2023-10-25 10:22:51.93   GMUVDIFS-COE-01 Stop  Add-KeybasedAuthWithLinuxBox

 

Regards

Sujeeth S

Hi Sujeet,

To remove old keys, please try the following:

ssh-keygen -R <DNS for ifs-remote>

Then re-run the ‘KEY’ step.

Best regards -- Ben


Hello Ben

 

FYIP; We were able to resolved this issue after updating the port in Main.ps1/Config.json and local & common.psm files,

 

however when we tried to run the next level command which is “.\main.ps1 -resource 'KUBERNETES'” and getting below error is like ---

 

New-SSHSession : Permission denied (publickey).
At D:\ifsroot\utils\common.psm1:43 char:23
+ ... LOBAL:ssh = New-SSHSession -Port 22022 -Computer $NodeName -Credentia … 

 

Any clue please.

 

 


Hi @Sujeet Saxena 

Did you find a solution for next issue that you have faced?

 


Hi, Please check the following information.

  • On the GCP instance, verify that the ~/.ssh/authorized_keys file contains the correct public key and has the right permissions. You can set the correct permissions using:

    chmod 600 ~/.ssh/authorized_keys

  • Ensure that the public key matches the private key you're using on your local machine.

Thanks,

Ashen


Reply