Solved

How to install secure shell...???

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
nagios alerts 3 44
issue in getting eth0 IP in oracale virtual box Linux VM 4 51
Reset Root Password on CentOS 6 4 53
Run DOS2UNIX and then execute the command 21 70
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

786 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