How to open Putty Session on local host | Community
Skip to main content
Level 2
December 1, 2021
Solved

How to open Putty Session on local host

  • December 1, 2021
  • 3 replies
  • 3496 views

I am creating a shell script to run on AEM production server. I am looking at ways to test the script on localhost before moving it to production. Is there any way to open a Putty session for the localhost?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Siva_Sogalapalli

Option 1:  If you're on windows, you can use power shell to run the script on your local.

https://www.howtogeek.com/662611/9-ways-to-open-powershell-in-windows-10/ 

 

Putty allow users to remotely access computers over SSH and run scripts, commands etc. 

If you want to test some script on your local then you don't need putty. 

 

Option 2: Place the script on any lower environments like dev/QA.

Install putty on local and connect the server and execute script from putty. 

 

 

 

3 replies

Raja-Karuppsamy
Community Advisor
Community Advisor
December 1, 2021

@anish2 You can try to test the script in Non-Production environments like Dev/QA before Production.

Anish2Author
Level 2
December 1, 2021

@raja-karuppsamy  I would like to test it on localhost before trying on QA environment. Is there any way to do that?

Siva_Sogalapalli
Community Advisor
Siva_SogalapalliCommunity AdvisorAccepted solution
Community Advisor
December 1, 2021

Option 1:  If you're on windows, you can use power shell to run the script on your local.

https://www.howtogeek.com/662611/9-ways-to-open-powershell-in-windows-10/ 

 

Putty allow users to remotely access computers over SSH and run scripts, commands etc. 

If you want to test some script on your local then you don't need putty. 

 

Option 2: Place the script on any lower environments like dev/QA.

Install putty on local and connect the server and execute script from putty. 

 

 

 

milind_bachani
Adobe Employee
Adobe Employee
December 1, 2021

Hi @anish2 ,

You actually need to use Putty, generally we use putty to get into unixbox or server network. You can directly test the shell script from localhost. If your lower environments have same hosting architecture as PROD, you can dry run on non prod envs. If you can elaborate what the script is supposed to do - we may have some additional comments/suggestions for testing the script locally.