Solved

Enable Telnet and SSH remote services

Posted on 2013-11-17
3
363 Views
Last Modified: 2013-11-17
I have two linux centos 6.3 server with following IP
Server1 192.168.1.1
Client  192.168.1.2

1: how can i enable telnet and SSH remote services
2: how can I initiate telnet and ssh sessions from linux client
3: how can I use TCP wrappers to disable TELNET

Thanke
0
Comment
3 Comments
 
LVL 28

Expert Comment

by:serialband
ID: 39655604
First, make sure ssh is installed

yum -y install openssh-server openssh-clients

chkconfig sshd on

To start, stop and restart ssh
/etc/init.d/sshd start | stop | restart

From a linux client with ssh installed,
ssh ACCOUNT_NAME@SERVER_NAME

Why would you want to use telnet?  Unless you're on a local trusted and secured network, it's completely insecure.
chkconfig telnet off
0
 
LVL 2

Author Comment

by:Mohammad Aamir Qureshi
ID: 39655611
I am new in Linux and I have been told to do above steps
0
 
LVL 10

Accepted Solution

by:
Luxana earned 300 total points
ID: 39655613
Hi,

NOTE all command to be executed using root privileges:

1) to enable ssh
- install openssh package
yum install openssh -y

Open in new window

start ssh with /sbin/service sshd start

Open in new window

- install telnet
yum install telnet telnet-server -y

Open in new window

- enable telnet by editing /etc/xinetd.d/telnet
disable         = no

Open in new window

Start wrapper:
service xinetd start

Open in new window

2)
from client to use telnet do:
telnet <IP address or Hostname>

Open in new window

from client to use ssh do:
ssh username@<IP address or Hostname>

Open in new window

3) to disable telent do:
edit /etc/xinetd.d/telnet
disable         = yes

Open in new window

service xinetd restart

Open in new window

0

Featured Post

New My Cloud Pro Series - organize everything!

With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.

Question has a verified solution.

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

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

932 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

10 Experts available now in Live!

Get 1:1 Help Now