LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-04-2005, 11:01 PM   #1
Boggy B
LQ Newbie
 
Registered: Jan 2005
Distribution: Ubuntu
Posts: 8

Rep: Reputation: 0
Telnetting


Hey guys, good to be here. I'm a mere tinkerer in Linux but i'll be happy to help out where i can, today though, i'm leeching some info. I searched this, and a few other forums, but all the solutions were either not realated or didn't work.

Anyway. I'm taking my personal computer to work to get some stuff installed over the nice internet connection there. However, i'd rather connect to it remotely, simply because there is too much stuff on my desk already.
Besides, it'll be a handy thing to know.

I'm aware of the security issues with telnet, and I looked up stuff about SSH, but it looks harder, and not worth the effort to get a remote connection going for only a day or two. Anyway, telnetting to a local address can't be that bad, besides there isn't exactly much anyone can do with my computer anyway.

Anyway, i just need it to accept connections from this PC. This is using Fedora Core 3, and Windows 2000; The one i'm connecting to is using Ubuntu.

Thanks a Bundle.
 
Old 01-05-2005, 12:26 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
ssh should probably already be configured or installed on your machine, its just a matter of you having it startup, start it up and ssh'ing into the machine, etc.

But yeah, ssh is worth it, telnet is bad, very bad and just as hard to configure than ssh is..
 
Old 01-05-2005, 12:31 AM   #3
Boggy B
LQ Newbie
 
Registered: Jan 2005
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
Yeah, SSH and telnet are both installed, it just won't accept connections. Where can i add an exception to the list of denied IP's? (Which i imagine is all of them, at the moment.) Or change whatever is stopping it from connecting. The specific message is
Code:
[root@Ararat jesseb]# telnet 192.168.1.215
Trying 192.168.1.215...
telnet: connect to address 192.168.1.215: Connection refused
telnet: Unable to connect to remote host: Connection refused
And SSH does...
Code:
[jesseb@Ararat ~]$ ssh 192.168.1.215
ssh: connect to host 192.168.1.215 port 22: Connection refused
So i'm pretty sure it's just a matter of allowing local IP's addresses access.
I just don't know how to do that.
 
Old 01-05-2005, 12:36 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Well I know telnet doesn't start by default in any distro any longer..

First find out if sshd is running:

ps -aux | grep sshd

If you see it running, then it is a firewall setup that might be blocking it. If not, it most likely needs to be started as root:

/sbin/service sshd start
 
Old 01-05-2005, 12:55 AM   #5
Boggy B
LQ Newbie
 
Registered: Jan 2005
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
Code:
root@boggyb:/ # /sbin/service sshd start
bash: /sbin/service: No such file or directory
However the regular ssh commands are there, so i'm sure it's installed. Where else could it be though?
 
Old 01-05-2005, 01:06 AM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Quote:
Originally posted by Boggy B
Code:
root@boggyb:/ # /sbin/service sshd start
bash: /sbin/service: No such file or directory
However the regular ssh commands are there, so i'm sure it's installed. Where else could it be though?
Do you see sshd listed anywhere in /etc/init.d/ ?

What about doing a: rpm -qa | grep openssh
 
Old 01-05-2005, 01:18 AM   #7
Boggy B
LQ Newbie
 
Registered: Jan 2005
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Do you see sshd listed anywhere in /etc/init.d/ ?
Nope.

Quote:
What about doing a: rpm -qa | grep openssh
I'm using Ubuntu on this PC, and i don't have Alien. Grep seems to hang the command line, no matter what i put in. It was still going after 10 minutes, so i Ctrl-C'd it.

Last edited by Boggy B; 01-05-2005 at 01:20 AM.
 
Old 01-05-2005, 01:48 AM   #8
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
I would suggest that you run "chkconfig" to see if sshd is running.
Code:
$ chkconfig --list sshd
It should come back with the result like this:
Code:
sshd   0:off  1:off  2:on  3:on  4:on  5:on  6:off
The numbers are runlevels; this means the sshd service is configured to start automatically on runlevels 2 thru 5.

sshd is under /etc/init.d on my system, but mine's Red Hat based and Ubuntu is Debian-based, so it may very well have the sshd daemon on a different location.

The list of allowed/denied hosts are kept under /etc/hosts.allowed and /etc/hosts.denied on my system.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Telnetting in Linux Gins Linux - General 23 04-13-2005 03:31 PM
Telnetting from outside IP?? CBRdave Linux - Networking 3 06-24-2004 11:59 PM
Telnetting to specifics ports and the available commands dominant Linux - Security 1 01-30-2004 08:25 PM
Telnetting to comp does not allow Root login ksoma Linux - Networking 9 06-22-2003 07:45 AM
Telnetting morbo Linux - Networking 3 12-10-2001 06:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration