I using PuTTy to SSH to a server, but I need the terminal window that opens to be small, only a certain x by x size, is there a ways to do this from command line?
How to make PuTTy window a certain size from command line
putty
Related Question
- Putty – Automatically Close Window on Exit from Command Line
- “Open in PuTTY” command of WinSCP: Can I scp files from Linux back to Windows from terminal in opened PuTTY instance
- Linux – New terminal window (duplicate session) from Putty command line
- PuTTY in console window
- Putty command line argument to change title
Best Answer
PuTTY Standard command line parameters does not mention any options for specifying a window size or a font size.
However, you can specify a profile to load, and that can be used to accomplish what you're seeking. A profile is basically a collection of settings, including window properties, remote server name, authentication keys, and more. Some of those settings, like the server name, can be left blank if desired.
Make a profile using the GUI. To change the window size, go to the screen of Window options. (That is above the "Appearance" screen. The word "Window" is a category that is above other screens in the hierarchy. But, it is also a screen of options.) Then, after specifying the size you want, go to the "Session" screen and type in a session name, and click "Save". That creates the profile.
Then, use:
Customize the part after the -load and between the quotes. Specify the full path to PuTTY as required.
Some more official documentation for you: PuTTY: Specifying a session to start with.