It also possible to connect to the server via ssh protocol using command line (bash), eventually it is possible to insert the command as a parameter (it is then executed and the connection is terminated).
Available commands are provided in the
/usr/bin directory. It is also possible to use standard bash shell tools, such as pipe command. If you need to install something else please contact customer support support(at)cesnet.cz. The shell is generally designed only for manipulation with data but not for calculations etc.
Server supports client connection only via ssh protocol ver. 2, which is usually default option. In case that the client has default setup version at ssh protocol version 1, it is necessary manually redefine. In command line is possible to use parameter “-2”, in Putty is necessary to set “Preferred SSH protocol version” to the value “2”, eventually “2 only”.
Example of command for connect to the server:
~$ ssh username@server
Example of command for connect to the server with forcing SSH version 2 protocol:
~$ ssh -2 username@server
Executing the command is in Putty defined in the “Connection→SSH” category, where we can insert required command into the line “Remote command”. After the command execution is the connection automatically terminated, which will cause (default settings), that the window is closed and the displayed output is lost. It is necessary to select in the Session category “Close window on exit” to “Never, to make possible to read the output.
Putty usage is beneficial especially for simple command running. Putty does not have command history and it is always necessary to insert the command again. If you log in often to the server via ssh, it is better to use in Windows system CygWin application - rsync client installation for command line in the Windows/Cygwin.