Putty command line options ssh

Putty command line options ssh

Author: untied Date of post: 04.06.2017

Software Defined Networking, Data Centre and Infrastructure. Blessay , Featured , Operation. That is why graphical interfaces exist.

If you have a repetitive task, then clicking the same thing over and over shows that you are poor engineer. You need to take control of your tools to work in the smartest way. PuTTY is a fine example of having both options. You can clicky-clicky all you want and waste hours of of your life pushing your mouse around the screen. Or you can run a lot of the repetitive PuTTY actions from the command line.

But first thing is to introduce to using the keyboard to get around Windows and open the DOS box. It always surprising how so few people know that Windows can actually be driven using the keyboard and very rarely need to use the mouse.

You need to note the directory that you installed PuTTY to, something like this would be the default. So lets create a telnet session for a device in our network by entering the details, entering a name in the Saved Sessions box and the clicking on the Save button.

You can start just about any program in Windows from the commad line. Lets look at starting Windows Notepad from the CLI.

The fastest way to open the Windows Start box is to press Control-Escape which will open the Windows Start menu as if you had clicked on the Start button. So you might think that it would be very easy to just type PuTTY using the same technique.

But alas, it does not. Give it a go and do something like this:. MS Windows uses a concept of paths to go searching for where programs are located on your hardware.

When using the DOS box, the operating system has no context about where your programs are located on the hard drive.

ssh - How to run a command file in PuTTY using automatic login in a command prompt? - Super User

When using the GUI, the information about where the program is located, is contained in the Shortcut that you are clicking on.

We can tell Windows that the directory where the PuTTY program is and to look in there for the program as needed. This set the path variables to include the PuTTY program directory in the search path.

You only have to do this once. Windows will set the the Environment Variable permanently from now on. You will need to logout at this point, or restart. The Path Variables are only read once at boot time. When you come back, open the DOS box again Ctrl-Escape, R, cmd, Enter — just to remind you , and type path to confirm the variables are in place.

BUT, I still have to click on grunter and then open with my mouse hand. Is strikes me that PuTTY was built by people who are really CLI centric so there would have to be options for doing more. If this syntax is used, settings are taken from the Default Settings see section 4. Also, you can specify a protocol, which will override the default protocol see section 3. For telnet sessions, the following alternative syntax is supported this makes PuTTY suitable for use as a URL handler for telnet URLs in web browsers:.

The -load option causes PuTTY to load configuration details out of a saved session. If these details include a host name, then this option is all you need to make PuTTY start a session.

So now I can open a DOS box Ctrl-Escape, R, cmd, Enter — just to remind you again , then type:. If you spend all day connecting to equpment, you need to get the connection done as fast as possible.

Spending all your life clicky-clicky on the cute little mousey is just distracting you from the task at the hand. It just not geek enough, and you need to be hardcore. This technique shows a really fast way to get connected to your devices.

It works best for SSH devices although it does, kind of support telnet, just not very well. You will need to spend some time learning the keyboard shortcuts that I talked about. Pretty quickly they will become second nature and you will have even more speed and confidence as you move around your network. This really is only just the start of what can do with PuTTY, and there are lots more things.

If you have a favorite then please contact me using the contact form or put something in the comments and I would be pleased to add it or write it up. Human Infrastructure for Data Networks. Host of the Packet Pushers Podcast on data networking at http: Does launchy allow you to specify the host that you wNt to connect to?

Or does it let you just start putty? If not, I would suggest that this technique is better? You are lucky to be able to.

Actually, pressing the tab key when putty is highlighted lets you enter the command line parameters. Thank god I know all the tricks what you have told. The system path attributes could be changed with autoexec. So that during the boot process initialization occurs. Assumes that you have a keyboard with the Windows key. Well if you just use FreeBSD, Solaris, Linux or MacOS as a Desktop workstation non of this junk is necessary. Installing an app just to use ssh … i mean how ridiculous is that.

When you dint have choices, this is best worst choice. You can connect and thats it. Too expensive for many. Probably my favourite on Windows, but when you have a dozen workstations that access different things, it gets very expensive.

Alternatively you could use a MAC and put terminal in the dock, one click and you are ready to telnet or ssh right from terminal. If you get fed up with putty windows popping up every time you want to ssh to a machine, try out mintty.

I no longer use cmd. I have a wonderful term that provides: Its features include a simple options dialog, Unicode support, drag and drop of files and folders, and window transparency. A much simpler method which I usually do as a standard on any Windows VM builds is copy the putty. Then I hit a start-run — type ssh x. As long as the default sessions settings are set to the connection type SSH then you are good.

I usually use the built in telnet client in windows or SecureCRT when telnet is needed. Putty connection manager is the way to go on this one. I created a database with that is laid out with folders that I can navigate through to find the box I need to connect to. This is the antithesis of of what this article is all about. For my quick and dirty connection I use cygwin ssh.

Works just like the linux version. I will agree here. I have to connect to a possible couple of hundred devices across the fleet.

Putty will not do and neither will the command line. PuttyCM is the best thing since sliced bread. Also a comment to Greg, that OS in your screenshots is almost 12 years old. Also, the post was published in Oct and WinXP was state of the art then. Here is an article that describes exactly how to do just that:.

Man, I wish I would have realized earlier, this is kind of just a silly way of running putty. I am trying to run a script in unix. I am able to connect to unix but the shell script is not getting executed i am sending it through sendln. Or you could use Visor with Terminal.

Or you could use Quicksilver to assign scripts to ssh into your servers, and launch those scripts through Quicksilver.

Putty, the Command Line and NO clicky clicky - EtherealMind

When on Windows you could simply use Cygwin, which allows you to use OpenSSH client and daemon, and gives you a bash environment to boot. When on Linux there are too many options to name. Though I wish I liked any of the Visor alternatives on Linux. You could switch to another virtual terminal and set up aliases. You could use AwesomeWM and barely have to use the mouse to do anything…. I use LaunchBar on Mac OS X: Well worth the cost for time savings of driving everything from the keyboard. Write a batch file with the command putty -pw.

Add the parent directory path of batch file to the Path Environment variable. Then, you should be able to login to the Unix machine by typing the batch file name from run window.

I want following things additionally 1. You can also call a remote putty function from inside the local machine. If you set the environment variables on Win7 , no need to log out. They are immediately available. Is there a way to add to this putty. Hi there, i am trying to send commands to the serial com port. Or is there any command which opens the desired comport with desires baud rate and executes user commands on the serial com port console? But this just opens the comport, what extra i need to do is to send commands on the opened serial port console.

But the cscript sends keys on the cmd prompt, i want it to be executed on the serial comport console. Can anyone please help me out on this? Robert Dunham Nilpo says. DOS has never been part of Windows NT with the exception of command. Use the new Start menu, it will show the last used programs.

putty command line options ssh

Set it to show 20, small icons and that will cover most of your work. Using the keyboard, perhaps? Windows has built in a useful feature: You open the start menu to open the Run Dialog? Or try with F, E, D too and use the damn internet to seek more useful keys, dude. If you like typing put all your used shorcuts on the Command starting path usually C: Documents and settingsUser type the first letters and press tab until it appears.

Yes, DOS has autocomplete. If you reinstal Windows you just need to copy all the. I have an AutoIt Script to shut down the entire server network. On some I use Windows Shutdown command, on other domains I use PSshutdown, on a couple of devices like NAS and the like: Putty SSH and Linux PowerOff command.

And on the virtual machines and appliances on ESXi also PowerOff command. I just find that having lots of Commands. Is there any way to just go: I just tought of setting parameters for the batch file like -m Commands.

Opening putty ssh connection using batch file is very handy, but it is VERY SLOW. Network Break is round table podcast on news, views and industry events. Join Ethan, Drew and myself as we talk about what happened this week in networking. In the time it takes to have a coffee. A podcast on Data Networking where we talk nerdy about technology, recent events, conduct interviews and more.

We look at technology, the industry and our daily work lives every week. Copyright Greg Ferro - Thanks for reading my site, it's been good to have you here. Opinions, Views and Ideas expressed here are my own and do not represent any employer, vendor or sponsor. Home Newsletter Who Am I? Consulting and Advisory Services Contact What does Ethereal Mind mean? Disclosure Disclaimer Comment Policy Privacy Policy Just Three Archive.

EtherealMind Software Defined Networking, Data Centre and Infrastructure. Installation You need to note the directory that you installed PuTTY to, something like this would be the default. My personal blog at http: Nicolas says 5th October at But really its nice post. I also second the use of Launchy. Alternatively, create a shortcut on the desktop and assign a hot key to it.

Secure CRT has the best of both worlds…. Hi, If you get fed up with putty windows popping up every time you want to ssh to a machine, try out mintty. Great tutorial — A much simpler method which I usually do as a standard on any Windows VM builds is copy the putty.

Can PuTTY command line be used with VBScript to completely automate daily download of files? Here is an article that describes exactly how to do just that: You missed a lot of good flags -pw myPassword logging in right from the cmd putty userName gunther -pw myPass or running a file of commands -m c: Is there a flag that can be used to save the data received from the remote host in a log?

Very helpful in understanding how to automate things in my computing life! Both remove the mouse entirely, as this article was attempting. I love driving from the keyboard. People who want something similar should look at Alfred which is free. C closes the window after running. Is there any way to run Putty behind not showing up on the screen? I am starting the putty in windows command prompt using following command START putty -ssh user abc. That will be very helpful to me.

putty command line options ssh

Too much typing, buy a new keyboard and use the Winkey. Instruction not found in entire Goddamn documentation. Network Break Podcast Network Break is round table podcast on news, views and industry events. Packet Pushers Weekly A podcast on Data Networking where we talk nerdy about technology, recent events, conduct interviews and more. Too Much Networking Would Never Be Enough! Find Me on Social Media Facebook Instagram Linkedin RSS Twitter YouTube.

Subscribe to my Human Infrastructure Magazine A bi-weekly newsletter on being Human in IT Infrastructure.

putty command line options ssh

I don't sell your personal details Your email address is never shared. Return to top of page. Sign-up for my newsletter.

inserted by FC2 system