The trouble with production/QA environments is that you can rarely change them to fit you personal preferences, and usually you use a common user to access them.
If you are working on Windows and using SecureCRT to connect to Linux/Unix machines (and if not – ask yourself why …) you can personalize any connection to QA/Production environments by telling SecureCRT to perform automatic login activities – this without effecting how the machine behaves for other users.
By personalization I am referring to the definition of your personal aliases etc.
How to do it:
- Download this VBScript to your computer, and place it somewhere (e.g. C:\Utils\SecureCRT\Scripts)
- Find a connection you want to effect in SecureCRT and open it’s properties
- Navigate to Connection -> Logon Actions
- Check the Logon script checkbox and type the path to the file defined at the beginning (e.g. C:\Utils\SecureCRT\Scripts\EnvironmentPersonalizer.vbs)
Every time you login – SecureCRT will run that script.
What the script does:
The way this scripts works is that it waits for something to happen on the screen and then sends commands.
objTab.Screen.WaitForString("$") // Wait for the prompt objTab.Screen.Send "bash" & vbcr // Switch to a BASH shell objTab.Screen.Send "clear" & vbcr // clear the screen objTab.Screen.Send "alias ll='ls -lart'" & vbcr // Alias 'll' to be 'ls –lart'
You can find a few more utility scripts on my Github Repository – https://github.com/ronkitay/SecureCRT-Environment-Personalization
Note: Take great care when effecting anything on production environments – don’t do anything that will effect how the environment behaves for other people (like changing the .bash_profile for example)
Ditto supports being configured for specific applications to work in a different manner – all you need to do is to update the registry in the correct way.
How to do it?
- Save the below into a file named
- Execute the file and choose Yes when prompted
- Open the registry editor (Start -> Run -> regedit)
- Navigate to
- If the Key PasteStrings does not exist, create it: Right-Click on Ditto -> New -> Key -> Name it as ‘PasteStrings’
- Add a new value for SecureCRT:
- Right-Click on PasteStrings -> New -> String Value -> Name it as ‘SecureCRT.exe’
- Double click on the new value, and give Value Data the value
Either way you do it – the change is immediate, no need for a restart.