Configure SSH

25 pts.
Tags:
SSH
SSH Configuration
How to configure SSH?

Answer Wiki

Thanks. We'll let you know when a new response is added.

If you somehow managed to get Debian GNU/Linux on your computer, you should be able to just run the commands:

sudo apt-get install openssh-client
sudo apt-get install openssh-server
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.original
sudo chmod a-w /etc/ssh/sshd_config.original
sudo /etc/init.d/ssh restart

Otherwise:

1. Retrieve Packages

First, get the packages. You can either find them on OpenSSL.org and OpenSSH.com on your own, or you can download what we have available here on the CSOM OIT webserver: [OpenSSL 0.9.5a] [OpenSSH 2.1.1p4].
2. Extract Tar Files

You need to untar these packages. Use the commands:

bash$ tar zxvf openssl-0.9.5a.tar.gz
bash$ tar zxvf openssh-2.1.1p4.tar.gz

You will now have two directories named `openssl-0.9.5a’ and `openssh-2.1.1p4′.
3. Compile and Install OpenSSL

The next step is to compile the OpenSSL library. Perform the following commands:

bash$ cd openssl-0.9.5a
bash$ ./config
bash$ make
[this takes a while, you can go get some coffee or something]
bash$ su
Password:
bash# make install
bash# exit
bash$ cd ..

Compile and Install OpenSSH

Finally, you have to compile and install OpenSSH. This actually compiles faster than OpenSSL.

bash$ cd openssh-2.1.1p4
bash$ ./configure –prefix=/usr –sysconfdir=/etc
bash$ make
bash$ su
Password:
bash# make install
bash# cp contrib/redhat/sshd.pam /etc/pam.d/sshd
bash# cp contrib/redhat/sshd.init /etc/rc.d/init.d/sshd
bash# /sbin/chkconfig –level 345 sshd on
bash# /etc/rc.d/init.d/sshd start
bash# exit
bash$ cd ..

If you plan on connecting to your system remotely and running X Windows programs through SSH, you should edit the /etc/sshd_config file and change the `ForwardX11′ option to say `ForwardX11 yes’. Then, issue the command `/etc/rc.d/init.d/sshd restart’.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    How to do it would depend on the OS, which you didn't specify. Please provide more details, and we will be able to provide more accurate help.
    69,920 pointsBadges:
    report
  • jinteik
    and if you are using windows, you can use COPSSH... can be found here... http://www.itefix.no/i2/index.php
    17,985 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following