how to get local bash shell in Putty

I want to see if it is possible to access local bash shell via Putty, I can access/use it via MobaXterm or from Linux partition but not from Putty. I am using Putty from Windows.

Putty and local bash shell

2

2 Answers

You can't with Putty.
Putty is a remote terminal client. It just doesn't have the functionality to run a local shell. It connects to a remote system and runs the shell over there.
MobaXTerm can do it, but that is because is a not just a terminal client (like Putty), but also contains a build-in Cygwin shell with a lot of Linux commands. It is this shell that is started by MobaXTerm when you tell it to open a local bash shell.

Opening a terminal window in Linux is an entirely different thing. You just run the shell application (bash or another shell) directly in a local window.
In Windows the equivalent of that would be to run a CMD of POWERSHELL prompt. Or (if you have the WSL (Windows SubSystem for Linux) installed) you could run a Linux terminal (with bash) directly in that.
Last, but not least: You can always run a SSH server in Windows and use Putty to connect to localhost. (But Putty is, technically, still a terminal client in that case. It is just that client and server both happen to run on the same machine.)

1

There is no direct way like MobaXterm, however it can be achieved by installing cygwin and using a middleware between Putty and Cygwin shell like cygtermd.

More details can be found here.

It is not so direct to setup, though it only has to setup once.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like