Difference between revisions of "Changing the Astronaut SSH password"
Perspectoff (talk | contribs) |
Perspectoff (talk | contribs) |
||
Line 20: | Line 20: | ||
== Changing Windows environment variables and shortcuts == | == Changing Windows environment variables and shortcuts == | ||
− | * | + | *[[Astronaut_CPRS_client_package#Changing_environment_variables|Change environment variable]] %ASTRO_SSH_CLIENT_PASS% : |
:Start Menu -> Control Panel -> Settings -> Advanced system settings -> Advanced -> Environment variables | :Start Menu -> Control Panel -> Settings -> Advanced system settings -> Advanced -> Environment variables | ||
Line 29: | Line 29: | ||
A list of the environment variables is displayed. | A list of the environment variables is displayed. | ||
− | :-> | + | :-> Variable Name: ASTRO_SSH_CLIENT_PASS -> Modify... |
− | + | :-> Variable Value: ''super123duperxyzstrong#%!password'' | |
− | :-> Variable Value: '' | ||
− | :Although in this example I used the value '' | + | :-> Variable Name: ASTRO_TEXT_PASS -> Modify... |
+ | :-> Variable Value: ''super123duperxyzstrong#%!password'' | ||
+ | |||
+ | :Although in this example I used the value ''super123duperxyzstrong#%!password'' | ||
+ | (instead of the default value ''not#1sostrong'') for the SSH client9260 and text9260 passwords, obviously create your own private password. | ||
=== Change Astronaut SSH shortcut === | === Change Astronaut SSH shortcut === | ||
Line 39: | Line 42: | ||
"C:\Program Files\VistA\Putty\putty.exe" -ssh -l %ASTRO_SSH_clientID% -pw %ASTRO_SSH_CLIENT_PASS% -L %ASTRO_PORT%:127.0.0.1:%ASTRO_PORT% %ASTRO_SSH_HOST% | "C:\Program Files\VistA\Putty\putty.exe" -ssh -l %ASTRO_SSH_clientID% -pw %ASTRO_SSH_CLIENT_PASS% -L %ASTRO_PORT%:127.0.0.1:%ASTRO_PORT% %ASTRO_SSH_HOST% | ||
− | + | No changes need to be made if you changed the environment variable. | |
− | |||
− | |||
If using a manual configuration (for [[Astronaut_CPRS_client_package#Installing_in_a_protected_environment|protected environments]] or on a [[Astronaut_Client_on_a_USB_drive|USB drive]], for example) the revised Astronaut SSH shortcut would be similar to: | If using a manual configuration (for [[Astronaut_CPRS_client_package#Installing_in_a_protected_environment|protected environments]] or on a [[Astronaut_Client_on_a_USB_drive|USB drive]], for example) the revised Astronaut SSH shortcut would be similar to: | ||
− | "C:\Program Files\VistA\Putty\putty.exe" -ssh -l client9260 -pw | + | "C:\Program Files\VistA\Putty\putty.exe" -ssh -l client9260 -pw ''super123duperxyzstrong#%!password'' -L 9260:127.0.0.1:9260 192.168.56.101 |
=== Change Text client shortcut === | === Change Text client shortcut === | ||
Line 50: | Line 51: | ||
"C:\Program Files\VistA\Putty\putty.exe" -P 22 %ASTRO_SSH_HOST% -l %ASTRO_textID% -pw %ASTRO_TEXT_PASS% | "C:\Program Files\VistA\Putty\putty.exe" -P 22 %ASTRO_SSH_HOST% -l %ASTRO_textID% -pw %ASTRO_TEXT_PASS% | ||
− | + | No changes need to be made if you changed the environment variable. | |
− | |||
− | |||
If using a manual configuration (for [[Astronaut_CPRS_client_package#Installing_in_a_protected_environment|protected environments]] or on a [[Astronaut_Client_on_a_USB_drive|USB drive]], for example) the revised Text client shortcut would be similar to: | If using a manual configuration (for [[Astronaut_CPRS_client_package#Installing_in_a_protected_environment|protected environments]] or on a [[Astronaut_Client_on_a_USB_drive|USB drive]], for example) the revised Text client shortcut would be similar to: | ||
− | "C:\Program Files\VistA\Putty\putty.exe" -P | + | "C:\Program Files\VistA\Putty\putty.exe" -P 22 192.168.56.101 -l text9260 ''super123duperxyzstrong#%!password'' |
== Changing the OpenSSH listening port on the VistA server == | == Changing the OpenSSH listening port on the VistA server == |
Revision as of 04:34, 7 February 2010
The Astronaut SSH tunnel is enabled by default using a *nix login ID of client9260 with a default password of not#1sostrong. It is in the /etc/passwd file. You can change it via the passwd command as root. Make sure that the passwords agree on the client side. It runs with no shell and exist only for client communication.
Contents
Change Astronaut SSH shortcut
The "Astronaut SSH" shortcut that is used to invoke the PuTTY SSH client uses a command line:
"C:\Program Files\VistA\Putty\putty.exe" -ssh -l %ASTRO_SSH_clientID% -pw %ASTRO_SSH_CLIENT_PASS% -L %ASTRO_PORT%:127.0.0.1:%ASTRO_PORT% %ASTRO_SSH_HOST%
The individual environment variables must be specified if you do not have privileges to specify environment variables. For example:
- %ASTRO_SSH_clientID% -> client9260 (this is the default value)
- %ASTRO_SSH_CLIENT_PASS% -> not#1sostrong (this is the default value)
- %ASTRO_PORT% -> 9260
- %ASTRO_SSH_HOST% -> 192.168.56.101 (use the IP address or URL of the installed VistA server)
If using a Astronaut SSH shortcut would therefore be:
"C:\Program Files\VistA\Putty\putty.exe" -ssh -l client9260 -pw not#1sostrong -L 9260:127.0.0.1:9260 192.168.56.101
This is an optional step for more security and for networks where there are multiple servers on the network using SSH connections. (In some networking configurations it is difficult for a router to know to which SSH server it should forward port 22 traffic). This method involves changing the port for the SSH (tunnel) traffic.
Changing Windows environment variables and shortcuts
- Change environment variable %ASTRO_SSH_CLIENT_PASS% :
- Start Menu -> Control Panel -> Settings -> Advanced system settings -> Advanced -> Environment variables
There is also an Astronaut utility that brings up the environment variables:
- Start Menu -> Programs -> Astronaut -> Sessions -> Client Variables -> Environment Variables
A list of the environment variables is displayed.
- -> Variable Name: ASTRO_SSH_CLIENT_PASS -> Modify...
- -> Variable Value: super123duperxyzstrong#%!password
- -> Variable Name: ASTRO_TEXT_PASS -> Modify...
- -> Variable Value: super123duperxyzstrong#%!password
- Although in this example I used the value super123duperxyzstrong#%!password
(instead of the default value not#1sostrong) for the SSH client9260 and text9260 passwords, obviously create your own private password.
Change Astronaut SSH shortcut
The "Astronaut SSH" shortcut that is used to invoke the PuTTY SSH client uses a command line:
"C:\Program Files\VistA\Putty\putty.exe" -ssh -l %ASTRO_SSH_clientID% -pw %ASTRO_SSH_CLIENT_PASS% -L %ASTRO_PORT%:127.0.0.1:%ASTRO_PORT% %ASTRO_SSH_HOST%
No changes need to be made if you changed the environment variable.
If using a manual configuration (for protected environments or on a USB drive, for example) the revised Astronaut SSH shortcut would be similar to:
"C:\Program Files\VistA\Putty\putty.exe" -ssh -l client9260 -pw super123duperxyzstrong#%!password -L 9260:127.0.0.1:9260 192.168.56.101
Change Text client shortcut
The "Text client" shortcut that is used to invoke the Text client uses a command line:
"C:\Program Files\VistA\Putty\putty.exe" -P 22 %ASTRO_SSH_HOST% -l %ASTRO_textID% -pw %ASTRO_TEXT_PASS%
No changes need to be made if you changed the environment variable.
If using a manual configuration (for protected environments or on a USB drive, for example) the revised Text client shortcut would be similar to:
"C:\Program Files\VistA\Putty\putty.exe" -P 22 192.168.56.101 -l text9260 super123duperxyzstrong#%!password
Changing the OpenSSH listening port on the VistA server
- See these instructions for OpenSSH on Ubuntu Server. The instructions for other Linux operating systems are similar.
- In brief, from the Ubuntu Server command-line terminal edit the OpenSSH configuration file:
sudo nano /etc/ssh/sshd_config
- Change the line:
port 22
- to the port of your desired SSH tunnel:
port 22144
- Restart OpenSSH:
sudo /etc/init.d/ssh restart
- Don't forget to configure your firewall (if any) on the Ubuntu Server to allow the new SSH port (e.g. 22144) through.