Skip to main content
Solved

IFS Cloud installation

  • Oct 25, 2023 10:38 AM UTC
  • 7 replies
  • 762 views

Forum|alt.badge.img+8

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

Best answer by Sujeet Saxena

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.

 

 

View original

7 replies

Forum|alt.badge.img+15
  • Superhero (Employee)
  • Oct 25, 2023 10:46 AM UTC

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


Forum|alt.badge.img+8
  • Author
  • Hero (Partner)
  • Answer
  • Oct 25, 2023 2:45 PM UTC

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.

 

 


Rusiiiru
Sidekick (Partner)
Forum|alt.badge.img+9
  • Sidekick (Partner)
  • Aug 27, 2024 11:14 AM UTC

Hi @Sujeet Saxena 

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

 


AshenR
Hero (Partner)
Forum|alt.badge.img+11
  • Hero (Partner)
  • Sep 13, 2024 7:36 AM UTC

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


Forum|alt.badge.img+5
  • Do Gooder (Customer)
  • Apr 28, 2025 4:02 PM UTC

Any updates on this topic. I am also currently stuck on the permission denied part after receiving this error during key generation.

 

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


Rusiiiru
Sidekick (Partner)
Forum|alt.badge.img+9
  • Sidekick (Partner)
  • Apr 28, 2025 4:28 PM UTC

Log in to Cloud MT server and edit below file and add this line PubkeyAcceptedAlgorithms +ssh-rsa

/etc/ssh/sshd_config

 

Best Regards,

Rusiru


Darshana Herath
Hero (Former Employee)
Forum|alt.badge.img+14

Any updates on this topic. I am also currently stuck on the permission denied part after receiving this error during key generation.

 

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



In my case my MT had violated SSH security policy

drwxrwxrwx 5 ifs ifs 4096 May  9 03:36 /home/ifs

Solution - > chmod 755 /home/ifs