Solved

How to install secure shell...???

Posted on 2000-03-19
2
270 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now