Fri, 30 November  |  LoginRussian version  |  OS2.Ru  
First page
News
Publications
Projects
Information Database
Catalog of OS/2 resources
TeamDB
Forums and discussions
Surveys and Contests
Russian Team/2
To the first page of OS2.Ru
 Around OS/2 |  Software and technologies |  Development
Search on: Add OS2.Ru tab to Netscape6/Mozilla Sidebar
OS2.Ru > Articles > Software > Internet > Ssh > Sshd.phtml.en
2000-08-25
Okounkov Konstantin
(print version)

SSH Server and Client for OS/2


SSH Daemon (Server)

1. Unpack and read README from ssh/2 archive :-)

2. Generate server key with command:


ssh-keygen -b 2048 -N "" -f /etc/ssh_host_key

Find key-file "random_seed" (located in %HOME%/.ssh/), rename it to ssh_random_seed and place into %ETC%.

3. Check the configuration files, that should be located in %ETC%:


ssh_host_key

ssh_host_key.pub

ssh_random_seed

ssh_term

sshd_config

Also some nice things to know about sshd:
/etc/motd file can contain something nice to output upon logging on to the server. A welcome message, server usage rules and so on.
/etc/nologin If this file is present, login will not be allowed. Instead, the contents of this file will be sent to the client and session closed.
/etc/sshrc
~/.ssh/rc
These can be some shell scripts that will be automatically executed when you log on. Unfortunately CMD.EXE can't do it.
/etc/environment
~/.ssh/environment
This can be a file that can contain a number of VARIABLE=VALUE lines. These variables will be added to your environment.

4. To allow multiple different users with different password the OS/2 port of SSHD has a built-in parser for Unix-like passwd files. For easier password database management a simple tool called "user" is provided.

5. If you want to run full-screen VIO programs (such as File Commander etc) through ssh you will need to make a special setup for given user: his shell should be "tnpipe.exe". This is a special program which launches TELNETDC.EXE (which comes with IBM TCP/IP) and redirects all input and output of TELNETDC to sshd. Thus, the line for a user that wishes to use full-screen VIO programs could look like this:


test:UkGfAuD60Pabg:101:101::$f/home:$f/path/to/tnpipe.exe

Remember that you should specify full path to tnpipe.exe.

When the user will log on, he will see the usual CMD.EXE prompt. But this time when he'll run some VIO program, it will really work. Note that you cannot DETACH the sshd daemon, otherwise it won't be able to launch a full-screen session.


SSH client

You can use national codepages in SSH client. See "Translation tables" section in ssh_term config file.

For better results, if you're connecting from an OS/2 machine using ssh, you should use the /etc/ssh_term.os2 configuration file for the built-in terminal, otherwise you will get bad and sometimes very bad output.


Download

  • ssh/2 1.2.30 (25/08/2000)

  • Author

    Andrew Zabolotny


    Discuss publication (replies:0)


    Previous publication  |  Next publication


     Around OS/2 |  Software and technologies |  Development


    Active surveys
    You primary filesystem

    All surveys
    Last news
    01/10: OS/2 Miniaturization Contest

    29/09: C-Media CMI8738 0.1.3 (audiodriver)

    28/09: Watcom C/Fortran 11c patch official release

    All news

    Articles
    Mutlizilla (how to make multiwindowed Mozilla)
    (Samorukov Alex , Okounkova Irina, 2001-09-06)

    Warpzilla news. An Interview with Mike Kaply
    (Samorukov Alex , 2001-09-04)

    An Interview with Anton Malykh, QU/2 author
    (Okounkov Konstantin, Okounkova Irina, 2001-04-24)

    All publications

    Solutions
    24.09 Test
    Tips & tricks

    Catalog
    Catalog tree
    New Acquisitions

    First page  |   News  |   OS2.Ru-Zine  |   Projects  |   Software  |   Development  |   Catalog  |   Rusian Team/2  |   Forums and talks  |   Surveys and Contests
    Design & content © 1996-2000 Copyright WebTeam
    The use of the OS2.Ru materials without the authors' consent is prohibited
    Powered by OS/2