Execute a batch file after ssh login


Author
Message
Ivilina Popova
Ivilina Popova
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)
Group: Forum Members
Posts: 1, Visits: 3
How do configure Pragma Fortress to automatically execute a batch file after an user logs on via ssh session?

I am running Pragma FortressSSH version 5.0 build 9 revision 507 on Windows 2003 server.



-Ivilina Popova
Technical Support Group...
Technical Support Group (TSG)
Pragmateer (1.3K reputation)Pragmateer (1.3K reputation)Pragmateer (1.3K reputation)Pragmateer (1.3K reputation)Pragmateer (1.3K reputation)Pragmateer (1.3K reputation)Pragmateer (1.3K reputation)Pragmateer (1.3K reputation)Pragmateer (1.3K reputation)
Group: Moderators
Posts: 136, Visits: 639
Hi Ivilina,

You can assign a logon batch file for users using one of the following methods. Select only one choice. Errors could occur if the batch file is assigned in multiple locations.

Option 1) Setup the batch file using Windows User Management program.

Option 2) Enter your batch file in the "Startup Program" filed under the Full Console Settings or Stream Settings options under Local FortressSSH Configuration dialog.

The field above the Startup Program is the Shell/Custom Program field which should have the following: C:\Windows\system32\cmd.exe

If you configure the above for the default user, all ssh users connecting to the server will execute the batch file. However, if you want a particular user to execute the batch file, first, add the user under Users option and then configure the above settings for that particular user.

Thank you,

Technical Support Group (TSG)
Pragma Systems, Inc.

Pragma Systems Technical Support
13809 Research Blvd, #675
Austin, TX 78750
http://www.pragmasys.com
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search