Solved

How to install secure shell...???

Posted on 2000-03-19
2
272 Views
Last Modified: 2010-04-20
I would like to install this thing called ssh (why? because people listen to my telnet traffic) on my redhat linux version 6.0 (cobalt raq) I very bad at linux so how do I install, please include the commands required as I havn't got a clue. basicly it is to administer a remote server (linux) with a windows machine, and it should be secure so what the best way to do it.

Thanks.
0
Comment
Question by:BRAUN
2 Comments
 
LVL 1

Accepted Solution

by:
dserna earned 44 total points
ID: 2633658
Okay here goes,

1. Download the ssh source code from here:

ftp://ftp.ssh.com/pub/ssh/

2. Once you have downloaded the source, gunzip it and untar it:

: dserna@ns:/extra: gunzip ssh-1.2.27.tar.gz  
: dserna@ns:/extra: tar xvf ssh-1.2.27.tar  
x ssh-1.2.27, 0 bytes, 0 tape blocks
x ssh-1.2.27/COPYING, 16879 bytes, 33 tape blocks
x ssh-1.2.27/README, 22132 bytes, 44 tape blocks
<snip>

3. Then cd into the ssh-1.2.27 directory and execute a script called "configure: which will check what type of system you have, etc.:

: dserna@ns:/extra/ssh-1.2.27: ./configure
creating cache ./config.cache
<snip>

4. Once that is done, then run "make" in the same directory. This will compile ssh:

: dserna@ns:/extra/ssh-1.2.27: make
gcc -pipe -c -I.  -I./gmp-2.0.2-ssh-2 -I./zlib-1.0.4 -DHAVE_CONFIG_H  -DHOST_KEY_FILE=\"/etc/ssh_host_key\" -DHOST_CONFIG_FILE=\"/etc/ssh_config\" -DSERVER_CONFIG_FILE=\"/etc/sshd_config\" -DSSH_PROGRAM=\"/usr/local/bin/ssh1\" -DETCDIR=\"/etc\" -DPIDDIR=\"/etc\" -DSSH_BINDIR=\"/usr/local/bin\" -DTIS_MAP_FILE=\"/etc/sshd_tis.map\" -g -O2 -I/usr/openwin/include ssh.c

5. Now su to root and run "make install" in the ssh directory:

: dserna@ns:/extra/ssh-1.2.27: su
Password:
: root@ns:/extra/ssh-1.2.27: make install

6.This will install the now compiled binaries. Once that is done,  a script will run which will create the host key. Just follow the instructions. Once that finishes, you should just run the sshd daemon:

: root@ns:/extra/ssh-1.2.27: /usr/local/sbin/sshd
: root@ns:/extra/ssh-1.2.27:
: root@ns:/extra/ssh-1.2.27: ps -aef | grep sshd
    root  7940     1 15 10:19:07 ?        0:03 /usr/local/sbin/sshd

You should now be able to ssh into your machine.

Hope that helps. :)




0
 

Expert Comment

by:maixp
ID: 5561702
How great to see this clear answer! My situation is quite same with BRAUN. But now I can get a 2.3.0. Is it same? How about the windows part? I heard that it can use Putty.exe as the SSH client. Is it right? Thanks!
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux Copy Command - All Files inc Directory 1 57
winscp 000webhost.com 6 75
CENTOS DHCP Server / PXE/TFTP 14 157
php56-php-mcrypt for rhel7 php56 1 56
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question