Dons Deals

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Thursday, 14 November 2013

Installing and Configuring OpenSSH Server In Linux - in the Command Line

Posted on 19:25 by Unknown
Here's a good Article about OpenSSH and showing how to install it in the Command Line. Here's an Excerpt from the Article below...

Don


How to Install and Configure OpenSSH Server In Linux

By Oltjano Terpollari Under: SSH On: November 13, 2013

Skipping on down...

Why Use OpenSSH And Over Telnet Or Ftp?

The most important reason why should use OpenSSH tools over ftp and telnet is that all communications and user credentials using OpenSSH are encrypted, they are also protected from man in the middle attacks. If a third party tries to intercept your connection, OpenSSH detects it and informs you about that.

What Are Some Of The OpenSSH Features?

  1. Secure Communication
  2. Strong Encryption (3DES, Blowfish, AES, Arcfour)
  3. X11 Forwarding (encrypt X Window System traffic)
  4. Port Forwarding (encrypted channels for legacy protocols)
  5. Strong Authentication (Public Key, One-Time Password and Kerberos Authentication)
  6. Agent Forwarding (Single-Sign-On)
  7. Interoperability (Compliance with SSH 1.3, 1.5, and 2.0 protocol Standards)
  8. SFTP client and server support in both SSH1 and SSH2 protocols.
  9. Kerberos and AFS Ticket Passing
  10. Data Compression

Installation of OpenSSH in Linux

To install OpenSSH, open a terminal and run the following commands with superuser permissions.

On Ubuntu/Debian/Linux Mint

$ sudo apt-get install openssh-server openssh-client

On RHEL/Centos/Fedora

Type the following yum command to install openssh client and server.

# yum -y install openssh-server openssh-clients

Configuration of OpenSSH

It’s time to configure our OpenSSH behaviour through the ssh config file, but before editing the /etc/ssh/sshd_config file we need to backup a copy of it, so in case we make any mistake we have the original copy.

Open a terminal and run the following command to make a copy of the original sshd configuration file.

$ sudo cp /etc/ssh/sshd_config  /etc/ssh/sshd_config.original_copy

As you can see from the command I typed, I added the original_copy suffix, so every time I see this file I know it is an original copy of the sshd config file.

How Do I Connect to OpenSSH

Before we go further, we need to verify if our openssh server is working or not. How to do that? You can try to connect to the openssh server from your localhost through your openssh client or do a portscan with nmap, but I like to use a small tool called netcat, also known as the TCP/IP Swiss army knife. I love working with this amazing tool on my machine, so let me show it to you.

# nc -v -z 127.0.0.1 22

Referring to the netcat results, the ssh service is running on port 22 on my machine. Very good! What if we want to use another port, instead of 22? We can do that by editing the sshd configuration file.

Set your OpenSSH to listen on TCP port 13 instead of the default TCP port 22. Open the sshd_config file with your favourite text editor and change the port directive to 13.

# What ports, IPs and protocols we listen for  Port 13

Restart OpenSSH server so the changes in config file can take place by typing the following command and run netcat to verify if the port you set for listening is open or not.

$ sudo /etc/init.d/ssh restart

Should we verify is our openssh server is listening on port 13, or not?. This verification is necessary, so I am calling my lovely tool netcat to help me do the job.

# nc -v -z 127.0.0.1 13

Do you like to make your openssh server display a nice login banner? You can do it by modifying the content of /etc/issue.net file and adding the following line inside the sshd configuration file.

Banner /etc/issue.net

Conclusion

Read More...
http://www.tecmint.com/install-openssh-server-in-linux/

  • Popular
  • Latest
  • Comments
  • Tags
  • Install Apache 2.2.15, MySQL 5.5.34 & PHP 5.5.4 on RHEL/CentOS 6.4/5.9 & Fedora 19-12 118 Comments
  • Wine 1.7.3 Released – Install in RHEL, CentOS and Fedora 111 Comments
  • Install Cacti (Network Monitoring) on RHEL/CentOS 6.3/5.8 and Fedora 17-12 103 Comments
  • CentOS 6.4 Step by Step Installation Guide with Screenshots 90 Comments
  • CentOS 6.3 Step by Step Installation Guide with Screenshots 84 Comments
  • Google Chrome 29 Released – Install on RHEL/CentOS 6 and Fedora 19/15 70 Comments

:: Download Free Linux eBooks ::

  • Introduction to Linux – A Hands on Guide
  • The GNU/Linux Advanced Administration
  • Securing & Optimizing Linux: The Hacking Solution
  • Linux Command Line Cheat Sheet
  • A Newbie’s Getting Started Guide to Linux
  • Create Your Own Linux System from Scratch
  • Linux Shell Scripting Cookbook – Second Edition
  • Linux Bible – The Complete Tutorial Resource

Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • ZigBee - a specification for a suite of high level communication protocols used to create personal area networks built from small low-power digital radios
    ZigBee From Wikipedia, the free encyclopedia Jump to: navigation , search ZigBee ...
  • Open Sorce Hardware - The Wandboard is a low cost board based on the i.MX6 multicore ARM Cortex-A9 family of processors. In consists of a core module based on the EDM standard and a simple to extend baseboard
    Here's an Open Source Wandboard - Freescale i.MX6 ARM Cortex-A9 Opensource Community Development Board. The Wandboard is a low ...
  • 1967 Chevy Camaro Complete Rebuild - Videos, HowStuffWorks Videos "NAPA Videos"
    Video Playlist - West Coast Customs Shop, Completely Tears Down a 1967 Chevy Camaro and then does a Complete Rebuild...
  • Installing and Updating GRUB 2 in Fedora Linux
    This Page has allot of info on Installing, Updating and Trouble Shooting Grub 2 in Fedora Linux. There are some good How To's for...
  • Dynaco Stereo 400 Power Amplifier - Dead Channel Fix - Dynaco Repairs For PC-28 Amplifier Boards
    My Dynaco Stereo 400 Amp... The Page Below these e-mails with Kevin Boales. Looks like the one that I found. Back in ...
  • Open source PLC's - PLC (programmable logic controller)
    Here's some Great Looking Open source PLC Projects. The OSPLC Small & Large Bricks are open-source PLC (programmable logic ...
  • NetProMax PC with Motherboard P5PE-VM ASUSTeK
    Here are some links to info on the NetProMax PC with Motherboard P5PE-VM ASUSTeK ... Don ASUSTe...
  • Running a PXE Boot Server in Parted Magic
    Here's some good info on Running PXE Boot Server in Parted Magic... Don PXE – Parted Magic PXE PXE: the "classic" way ...
  • Americas Health Care - Obama Care - Key Features of the Affordable Care Act - Health Care and Education Reconciliation Act
    Finally! Some real info, as in... This is the date that the Affordable Care Act, goes into effect. Open enrollment in the Heal...
  • Building a Brushless Motor Controller using an ATmega Chip - by Davide Gironi
    Here's a very in depth Article on Building a Brushless Motor Controller using an ATmega Chip - by Davide Gironi... Do...

Blog Archive

  • ▼  2013 (354)
    • ►  December (12)
    • ▼  November (33)
      • Ninja Blocks Home Automation System - Hardware, as...
      • The Rules are Changing as we go, with Obama Care -...
      • Linux Drivers for the HP Photosmart C3180 All-in-O...
      • How To install HULU and NETFLIX on your XBMC Media...
      • Fun Linux Commands - 20 Funny Commands of Linux or...
      • Illumination Software Creator - visually build you...
      • I'm trying out SparkyLinux, it's based on Debian T...
      • How to Hack a Portable DVD Player into a Cheap LCD...
      • LCD TV Repair made easy # 1 - YouTube
      • NetHogs App, is great for finding out how much Ban...
      • Neverquest Trojan Targets Online Banking Users - O...
      • Free Online Video Courses from the guys at Google ...
      • There's a New Public Key in Town - Open Source NTR...
      • DIY Pick and Place V2 Project Complete - Brian Dor...
      • Earth Quakes in Azle TX! Yep, it's real!
      • Auto-Sort Bookmarks - Add-ons for Firefox
      • Network Activity Viewer - Net Activity Viewer
      • Fokirtor Linux Back Door Uses Covert Communication...
      • Human Powered Hydrofoils - Bikes
      • Installing and Configuring OpenSSH Server In Linux...
      • Virus Scan a file online, upload a file
      • Ham Radios - BITX - An easy to build 6 watts SSB t...
      • Web Browser Safety - What Is Your Browser Doing be...
      • Not just an altered Ink Jet Printer for Printing C...
      • KiCad Project Creation - Video Series "Getting To ...
      • WinDirStat disk usage statistics viewer and clean-...
      • England's National Media Museum Discovers World’s ...
      • How to install Raspbmc on the Raspberry Pi, from t...
      • TreeLine and HTMLDoc for Editing Organizing and Co...
      • Cuisinart 3-in-1 Cook Central (MSC-600) Demo Video...
      • Fedora or Korora 17 How to Move or Delete utab fil...
      • Intel's Galileo open-source computer for the hacke...
      • What's the Image on the Google Home Page, all abou...
    • ►  October (23)
    • ►  September (46)
    • ►  August (52)
    • ►  July (36)
    • ►  June (45)
    • ►  May (17)
    • ►  April (38)
    • ►  March (19)
    • ►  February (22)
    • ►  January (11)
  • ►  2012 (145)
    • ►  December (27)
    • ►  November (31)
    • ►  October (14)
    • ►  September (15)
    • ►  August (48)
    • ►  July (10)
Powered by Blogger.

About Me

Unknown
View my complete profile