First, download the installation
| The code is as follows |
Copy Code |
[root@localhost src] wget http://cronylab.pl/codes/sshc-0.8.tar.gz
[root@localhost src] tar zxvf sshc-0.8.tar.gz
[root@localhost src] CD ssh_connector-0.8
[Root@localhost ssh_connector-0.8]# SH install.sh
[#] Uncompressing iniparser-2.17.tar.gz
[#] Iniparser Compilation in progress ...
Compiling src/iniparser.c ...
Compiling src/dictionary.c ...
Compiling SRC/STRLIB.C ...
a-src/iniparser.o
a-src/dictionary.o
a-src/strlib.o
[#] Installing SSHC in/usr/bin/...
Ssh_connector.c:24:21:error:ncurses.h:no such file or directory
Ssh_connector.c:28:18:error:menu.h:no such file or directory
ssh_connector.c:50:error:expected ' = ', ', ', '; ', ' asm ' or ' __attribute__ ' before ' * ' token
ssh_connector.c:58:error:expected ' = ', ', ', '; ', ' asm ' or ' __attribute__ ' before ' * ' token
ssh_connector.c:59:error:expected ' = ', ', ', '; ', ' asm ' or ' __attribute__ ' before ' * ' token
Ssh_connector.c:63:error:expected ') ' before ' * token
ssh_connector.c:in function ' Heart ':
|
As shown above, an error occurs during installation. Because the required ncurses.h header file does not exist, direct Yum installation:
| The code is as follows |
Copy Code |
[root@localhost ssh_connector-0.8]# yum-y Install ncurses ncurses-devel
|
Install and then perform the installation again:
| The code is as follows |
Copy Code |
[Root@localhost ssh_connector-0.8]# SH install.sh
[#] Uncompressing iniparser-2.17.tar.gz
[#] Iniparser Compilation in progress ...
Compiling src/iniparser.c ...
Compiling src/dictionary.c ...
Compiling SRC/STRLIB.C ...
a-src/iniparser.o
a-src/dictionary.o
a-src/strlib.o
[#] Installing SSHC in/usr/bin/...
[#] Installation completed
[#] Example config is created in/root/.ssh/ssh_connector.conf and it must be there! (already copied;] )
|
Second, the use
Compile the configuration file as follows:
| The code is as follows |
Copy Code |
[Root@localhost. ssh]# cat/root/.ssh/ssh_connector.conf
[Test1]
hostname = testowy1.test.pl
Username = Test
Port = 22
Auth = password
[WWW]
hostname = 192.168.10.12
Username = Test
Port = 321
Auth = password
[1.200]
hostname = 192.168.1.200
Username = root
Port = 22
Auth = password
|
Note: The authentication method here is the password method, key method did not try.
After configuring the configuration file, run the SSHC command directly and bring up the following interface:
Because I this diagram is in the SECURECRT connection of the server installation screenshot, so there will be garbled display, and give a direct in GNOME, XFCE desktop environment of a terminal screenshot: