steveM
Posts: 46
Joined: Tue Dec 27, 2011 11:50 am

Re: No telnet or ssh

Thu May 01, 2014 2:00 pm

"but there's a hole in the bucket"!!!!

I've got the telnetd file on my laptop, now I need ftp to get it across to the pi!!

Can I just copy it across onto the SD card plugged into the laptop and maneuver it from there once the card is back in the Pi?

User avatar
RaTTuS
Posts: 10559
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: No telnet or ssh

Thu May 01, 2014 2:05 pm

copy it via ssh ;-p
or winscp

or put it on the sd card [if it will fit] then plug it into the RPi
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

steveM
Posts: 46
Joined: Tue Dec 27, 2011 11:50 am

Re: No telnet or ssh

Thu May 01, 2014 2:40 pm

I moved the file "openbsd-inetd_0.20091229-2_armhf.deb" to /var/cache/apt/archives and ran the script apt-get install telnetd

I got the same results as before, the script ran off to find the Raspberry web server which of course it can't do and the install failed.

How do I run apt-get so it installs from the archive not the web?
Last edited by steveM on Thu May 01, 2014 2:47 pm, edited 1 time in total.

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: No telnet or ssh

Thu May 01, 2014 2:47 pm

steveM wrote:Putty is just so complicated, no put or get commands and it's yet another application to install and learn. Why would you want to use it?
Eh?

I don't know what you mean by "put or get commands".

PuTTY is simple and comes with pscp and psftp for file transfer. If you don't like that install filezilla which can use sshd.
You can even start PuTTY from a command window with putty 192.168.3.14 and it uses default settings.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

steveM
Posts: 46
Joined: Tue Dec 27, 2011 11:50 am

Re: No telnet or ssh

Thu May 01, 2014 3:20 pm

I did some digging around on the forum and found the following command which resulted in this:

The programs included with the Debian GNU/Linux system are free software;
pi@raspberrypi /var/cache/apt/archives $ sudo dpkg -i *.deb
Selecting previously unselected package openbsd-inetd.
(Reading database ... 68746 files and directories currently installed.)
Unpacking openbsd-inetd (from openbsd-inetd_0.20091229-2_armhf.deb) ...
Setting up openbsd-inetd (0.20091229-2) ...
[ ok ] Stopping internet superserver: inetd.
insserv: warning: script 'mathkernel' missing LSB tags and overrides
[info] Not starting internet superserver: no services enabled.
Processing triggers for man-db ...
pi@raspberrypi /var/cache/apt/archives $ telnet
-bash: telnet: command not found
pi@raspberrypi /var/cache/apt/archives $

Unsure as to whether or not telnet is running I ran the following:

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Jan 8 00:53:20 2014 from 192.168.0.1
pi@raspberrypi ~ $ telnet
-bash: telnet: command not found
pi@raspberrypi ~ $ ps -aux | grep telnet
warning: bad ps syntax, perhaps a bogus '-'?
See http://gitorious.org/procps/procps/blob ... tation/FAQ
pi 2079 0.0 0.4 3544 808 pts/0 S+ 00:59 0:00 grep --color=au to telnet
pi@raspberrypi ~ $ sudo ps -aux | grep telnet
warning: bad ps syntax, perhaps a bogus '-'?
See http://gitorious.org/procps/procps/blob ... tation/FAQ
pi 2081 0.0 0.4 3544 808 pts/0 S+ 01:00 0:00 grep --color=au to telnet
pi@raspberrypi ~ $ sudo ps aux | grep telnet
pi 2084 0.0 0.4 3544 808 pts/0 S+ 01:00 0:00 grep --color=au to telnet
pi@raspberrypi ~ $ chkconfig telnet on
-bash: chkconfig: command not found
pi@raspberrypi ~ $ sudo chkconfig telnet on
sudo: chkconfig: command not found
pi@raspberrypi ~ $ netstat -a | grep telnet
pi@raspberrypi ~ $

Whatever this means telnet is still not working.

User avatar
rpdom
Posts: 17173
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: No telnet or ssh

Thu May 01, 2014 3:37 pm

You haven't installed telnetd yet, although you have installed openbsd-inetd which it requires.

You should have also fetched and installed http://mirrordirector.raspbian.org/rasp ... _armhf.deb for the server or http://mirrordirector.raspbian.org/rasp ... _armhf.deb for the client.

steveM
Posts: 46
Joined: Tue Dec 27, 2011 11:50 am

Re: No telnet or ssh

Thu May 01, 2014 4:28 pm

This is a nightmare.

When I ran the earlier command --print -uris it only bought up the one file I mentioned.

Where did the other 2 come from?

User avatar
rpdom
Posts: 17173
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: No telnet or ssh

Thu May 01, 2014 4:57 pm

Odd... when I try apt-get --print-uris install telnetd I get

Code: Select all

...
The following extra packages will be installed:
  libfile-copy-recursive-perl openbsd-inetd update-inetd
The following NEW packages will be installed:
  libfile-copy-recursive-perl openbsd-inetd telnetd update-inetd
0 upgraded, 4 newly installed, 0 to remove and 10 not upgraded.
Need to get 115 kB of archives.
After this operation, 351 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
'http://mirrordirector.raspbian.org/raspbian/pool/main/o/openbsd-inetd/openbsd-inetd_0.20091229-3_armhf.deb' openbsd-inetd_0.20091229-3_armhf.deb 31442 MD5Sum:2dcb1f34d2dab82853a144a666d8c276
'http://mirrordirector.raspbian.org/raspbian/pool/main/n/netkit-telnet/telnetd_0.17-36_armhf.deb' telnetd_0.17-36_armhf.deb 41312 MD5Sum:0ab9431af3adc0ed610d6e063360b065
'http://mirrordirector.raspbian.org/raspbian/pool/main/libf/libfile-copy-recursive-perl/libfile-copy-recursive-perl_0.38-1_all.deb' libfile-copy-recursive-perl_0.38-1_all.deb 20554 MD5Sum:6637082afadd2ce1536e0496da1c70ae
'http://mirrordirector.raspbian.org/raspbian/pool/main/u/update-inetd/update-inetd_4.43_all.deb' update-inetd_4.43_all.deb 21760 MD5Sum:2609248fac6590aada4735eda4fb1b9b
File versions may be different as I am running Jessie/testing on that Pi, but the output should be similar. Four files in total.

steveM
Posts: 46
Joined: Tue Dec 27, 2011 11:50 am

Re: No telnet or ssh

Thu May 01, 2014 5:11 pm

WOO! HOO! Got it. :D

Man that took some doing, thanks for everyones help.

I think I shall write this up as a little help guide or simple How To.

Telnet and FTP rock!!

Once again thank you all.

Steve :D

User avatar
rpdom
Posts: 17173
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: No telnet or ssh

Thu May 01, 2014 5:28 pm

steveM wrote:Telnet and FTP rock!!
Yes, they are from the Stone Age :lol:

Glad you got it sorted out :)

steveM
Posts: 46
Joined: Tue Dec 27, 2011 11:50 am

Re: No telnet or ssh

Thu May 01, 2014 5:35 pm

"Yes, they are from the Stone Age :lol: "

Oh touche! :)

inurear
Posts: 1
Joined: Thu Feb 27, 2020 9:40 pm

Re: No telnet or ssh (work around)

Thu Feb 27, 2020 9:54 pm

Some Background:
I too am having trouble using telnet or ssh to my Raspberry Pi which is on a static ip given by my router... The webserver portion connects, so I know it's not a network IP issue.

I'm also familiar with both Putty and even have installed the windows feature for Telnet, but nothing doing.

My Workaround
I installed "Ubuntu" from the Windows Store. then from there I telnet to the ip directly... works like a charm. And Ubuntu is a colourized shell with much more compatibility to raspberry's implementation of debian.

The reason why this works?
No idea. I don't know why I can connect from linux (on windows) to linux, but not windows to linux. This has only happened to me with the pi. Frankly seems a bit bogus.

Return to “Troubleshooting”