Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am creating sessions on PuTTyCM with macro mode enabled where I can send password and also post login commands. Initially the server to which I am logging was taking the password as userID (due to network latency I guess). I corrected this problem by increasing connection timeout. I am not able to give post-login commands even though I tried various command timeouts. Anyone please tell me how to get this working

share|improve this question

migrated from Sep 28 '12 at 16:45

This question came from our site for professional and enthusiast programmers.

When creating connection put username@ip_address to address field, this will solve issue when puttycm uses password as login.

share|improve this answer

I have the same problem:

I have a problem with the configuration commands:

when I enter an ssh command in the command 1 box such as “ssh” then when I run it the ssh command is simply ignored. We then tried tricking it by placing an echo at the front (echo 'ssh';) but it is still ignored. We also tried (sudo sh -c ssh The only way to do it is by putting identical ssh commands in two consequtive boxes like this:

command box 1:ssh

command box 2:ssh

This solves the first problem but my problem is that you only have 5 command boxes and the fifth one is neccessary! But it is being taken up by the second box being in use. How can I only have a single command line for ssh in other words is there another way to trick putty CM into NOT ignoring the first SSH? which brings us back to the first problem.

share|improve this answer

to add on Max Drogobitskiy's answer, when create/edit new connection, enter the following in your Host:


Host: username@ -pw pa55w0rd

sample from my server:

Using username "jboss".
Using keyboard-interactive authentication.
Last login: Wed Jul 31 10:33:44 2013 from

Note: Remember to disable the Macro login if you use above method, else your password will be visible.

share|improve this answer
Welcome to SuperUser and thank you for your participation. Usually, if you'd like to build off of an existing answer, you can do so via a comment or an edit, which are privileges you can earn as you participate. Have a look around and enjoy your stay. – Raystafarian Jul 31 '13 at 10:37

To solve this issue increase timeout of command on login macro option. Restart PuttyCM. Now post login command will work!

share|improve this answer

The following macro options helped me.

Connection:1000 Password: 1050 Login:900 Command: 1250

Also, under the LOGIN MACRO, we need to provide user id as COMMAND 1 and password as COMMAND 2. COMMANDS 3,4,5 can be anything you wish. Hope this helps.

share|improve this answer

Increase only "password" value in macro option (i use 1750ms).

Explaination : with this values : Connection:1000 Password: 1050 Login:900 Command: 1250

  1. Puttycm wait 1000ms after the connection command to start logincommand
  2. Puttycm wait 900ms after the login command to start password command
  3. Puttycm wait 1050ms after the password command to start the 1rst"Command" command
  4. Puttycm wait 1250ms after the 1rst command to start the 2nd "Command" command
  5. Puttycm wait 1250ms after the 3rd command to start the 4 "Command" command
  6. etc.

The issue appears only when time to validate password by the server is too long.

So the value to increase if 1rst command is not visible is : password command. I changed this value and i have no more problem.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.