0

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

CaldeiraG
  • 2,623
  • 8
  • 21
  • 34

2 Answers2

1

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.)

Tonny
  • 33,276
0

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.

Barremian
  • 815