Solved

Enable Telnet and SSH remote services

Posted on 2013-11-17
3
365 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
UPD maximums on Red Hat 6 114
how to configure multiple subnet in linux ddns server 2 84
linux, squid, exchange 14 159
php54-php-imap for redhat enterprise linux 7.2 1 86
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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

776 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