Include Page |
---|
| KBCOMMON:KB-CSSstyle |
---|
| KBCOMMON:KB-CSSstyle |
---|
|
...
Optional parameter used to open the console program while executing the script. This parameter must contain the full path to the software used to connect to the console. In case putty is going to be used, it is possible to set it to 'putty' without any path. Doing so, the script will look for the latest version available in the Charon installation folder.
It is recommended to define this parameter in case of integration with Windows shutdown
Example 1:
openconsolecmd=C:\Program Files\CHARON\Build_20203\x64\putty
Example 2:
openconsolecmd=putty
openconsolearg
Optional parameter defining the parameters of the openconsolecmd
parameter above.
...
c:\Charon>"C:\Program Files (x86)\OpenSSH\ssh-keygen" -f c:\charon\win2008bmrsa -t rsa -b 2048
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase): ← do not specify any passphrase
Enter same passphrase again:
Your identification has been saved in c:\charon\win2008bmrsa.
Your public key has been saved in c:\charon\win2008bmrsa.pub.
The key fingerprint is:
SHA256:DmB9rFQYeGlzM6uL51Y4EVR8XoCEb+SXFrw7ZD0Khv4 administrateur@WIN2008BM
The key's randomart image is:
+---[RSA 2048]----+ (truncated)
+----[SHA256]-----+
c:\Charon>"C:\Program Files (x86)\OpenSSH\ssh-keygen" -f c:\charon\win2008bmrsa -e
---- BEGIN SSH2 PUBLIC KEY ----
Comment: "2048-bit RSA, converted by administrateur@WIN2008BM from Ope"
(truncated)
---- END SSH2 PUBLIC KEY ----
|
Depending on OpenSSH version used, the installation folder could be "C:\Program Files (x86)\OpenSSH for Windows
" and executables in the "bin
" child folder
...
Div |
---|
| $ SET DEF SYS$LOGIN
If needed: $ CREATE /DIR [.SSH2]
$ SET DEF [.SSH2]
$ EDIT WIN2008BMRSA.PUB
---- BEGIN SSH2 PUBLIC KEY ----
Comment: "2048-bit RSA, converted by administrateur@WIN2008BM from Ope"
(truncated)
---- END SSH2 PUBLIC KEY ----
|
$ EDIT AUTHORIZATION.
$
|
|
...
Div |
---|
| c:\Charon>"C:\Program Files (x86)\OpenSSH\ssh" -i c:\charon\ win2008bmrsa -l system 10.0.0.3 ^
More? "show system/noprocess"
Welcome to OpenVMS (TM) Alpha Operating System, Version V8.4
OpenVMS V8.4 on node VMS084 8-JUL-2016 04:10:47.57 Uptime 0 00:24:13
|
|
...
If you encounter a "cygwin warning
" error message and/or a message like: Could not create directory '/home/<user>/.ssh'
, please see Managing CYGWIN and ssh error messages chapter.
If you encounter an error message related to diffie-hellman-group1-sha1
, please see Managing ciphers, hashes and key-exchange algorithms chapter.
Include Page |
---|
| KBCOMMON:KB-GoToTop |
---|
| KBCOMMON:KB-GoToTop |
---|
|
...
c:\Charon>"C:\Program Files (x86)\OpenSSH\ssh-keygen" -f c:\charon\win2008bmrsa -t rsa -b 2048
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase): ← do not specify any passphrase
Enter same passphrase again:
Your identification has been saved in c:\charon\win2008bmrsa.
Your public key has been saved in c:\charon\win2008bmrsa.pub.
The key fingerprint is:
SHA256:DmB9rFQYeGlzM6uL51Y4EVR8XoCEb+SXFrw7ZD0Khv4 administrateur@WIN2008BM
The key's randomart image is:
+---[RSA 2048]----+
(truncated)
+----[SHA256]-----+
c:\Charon>"C:\Program Files (x86)\OpenSSH\ssh-keygen" -f c:\charon\win2008bmrsa -e
---- BEGIN SSH2 PUBLIC KEY ----
Comment: "2048-bit RSA, converted by administrateur@WIN2008BM from Ope"
(truncated)
---- END SSH2 PUBLIC KEY ----
|
Depending on OpenSSH version used, the installation folder could be "C:\Program Files (x86)\OpenSSH for Windows
" and executables in the "bin
" child folder
...
Div |
---|
| # cd /.ssh2
# vi win2008bmrsa.pub
---- BEGIN SSH2 PUBLIC KEY ----
Comment: "2048-bit RSA, converted by administrateur@WIN2008BM from Ope"
(truncated)
---- END SSH2 PUBLIC KEY ----
|
# echo "Key win2008bmrsa.pub" >> authorization
|
|
...
If you encounter a "cygwin warning
" error message and/or a message like: Could not create directory '/home/<user>/.ssh'
while executing this command, please see Managing CYGWIN and ssh error messages.
If you encounter an error message related to diffie-hellman-group1-sha1
, please see Managing ciphers, hashes and key-exchange algorithms chapter.
Include Page |
---|
| KBCOMMON:KB-GoToTop |
---|
| KBCOMMON:KB-GoToTop |
---|
|
...
You can ignore the "cygwin warning" message or define the environment variable (see how-to) "CYGWIN
" to "nodosfilewarning
" as explained in the displayed text if it appears. This warning message will not be displayed while running the Powershell script as this environment variable is set inside the script.
...
If you encounter an error message like: Could not create directory '/home/<user>/.ssh'
, please create the "HOME
" Windows environment variable (see how-to) and set it to your home folder, for example.
...