?
Solved

How to install secure shell...???

Posted on 2000-03-19
2
Medium Priority
?
277 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 132 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

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…
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.
Suggested Courses
Course of the Month15 days, 21 hours left to enroll

850 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