PuTTy connection manager Post-login commands not working

9,091

Solution 1

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

Solution 2

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 server1.step3.b1q.example.com” 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 server1.step3.b1q.example.com';) but it is still ignored. We also tried (sudo sh -c ssh server1.step3.b1q.example.com). The only way to do it is by putting identical ssh commands in two consequtive boxes like this:

command box 1:ssh server1.step3.b1q.example.com

command box 2:ssh server1.step3.b1q.example.com

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 server1.step3.b1q.example.com. 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.

Solution 3

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:
9,091
user1004985
Author by

user1004985

Updated on September 18, 2022

Comments

  • user1004985
    user1004985 over 1 year

    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

  • Raystafarian
    Raystafarian almost 11 years
    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.