Difference between revisions of "Telnet and ssh remote connections"

From WikiDLXTV
Jump to: navigation, search
 
(14 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
=Introduction=
 
=Introduction=
According to wikipedia [http://en.wikipedia.org/wiki/Telnet telnet] is  
+
According to Wikipedia [http://en.wikipedia.org/wiki/Telnet telnet] is  
 
<pre>
 
<pre>
 
  Telnet (teletype network) is a network protocol used on the Internet or local area networks to provide a
 
  Telnet (teletype network) is a network protocol used on the Internet or local area networks to provide a
Line 9: Line 9:
 
</pre>
 
</pre>
  
The Linux manual page for "telnet" tells us this:
+
The Linux manual page for "telnet" tells us:
 
<pre>
 
<pre>
 
  The telnet command is used for interactive communication with another host using the TELNET protocol.  
 
  The telnet command is used for interactive communication with another host using the TELNET protocol.  
Line 18: Line 18:
 
=Let's start=
 
=Let's start=
 
== 1. WDTV-Live IP Address ==
 
== 1. WDTV-Live IP Address ==
My WDTV-live is located at 192.168.1.102, one way to obtain this address is in your router, another is navigating wdtv to '''Settings'''>'''System setting'''>'''System information''' or to '''Network setting'''>'''Network setup''' and find your '''Ip address'''.
+
My WDTV-live is located at 192.168.1.102. One way to obtain this address is in your router. Another is navigating your WDTV to '''Settings'''>'''System setting'''>'''System information''' or to '''Network setting'''>'''Network setup''' and find your '''IP address'''.
  
  
 
== 2. Telnet to change password ==
 
== 2. Telnet to change password ==
 +
If you flashed your WDTV for the first time or completely deleted your configuration there is by default no root password for telnet set, you have to set one in order to use SSH or FTP.<br>
 +
If you forgot your password you can reset the telnet/ssh and webend passwords using [http://apps.wdlxtv.com/apps/pw-reset-live/pw-reset-live.app.bin this application].
 +
 +
 +
=== All Platforms (Webbrowser with Java) ===
 +
* Point your browser to the IP address of your WDTV and click on the Telnet icon.
 +
* (You might get a Java password prompt (a new small window), enter WDLXTV Webend password here [default: '''wdlxtv'''/'''wdlxtv'''])
 +
* In the black telnet window you will be prompted for a username, enter: '''root'''.
 +
* If you get asked for a password simply press '''RETURN'''.
 +
* Now enter '''passwd''' and hit '''RETURN'''.
 +
* You will be asked for a new password and a second time to confirm this password, enter the the new password twice.
 +
* Done.
 +
 +
 
=== Linux ===
 
=== Linux ===
type this command:
+
Type this command:
 
<pre>telnet 192.168.1.102</pre>
 
<pre>telnet 192.168.1.102</pre>
well what the hell are we doing, we are trying to enter like the Administrator('''root''') or Super User
+
Well, what are we doing? We are trying to enter like the Administrator('''root''') or Super User.
then you will see something like this
+
You will see something like this
 
<pre>
 
<pre>
 
pint0@debian:~$ telnet 192.168.1.102
 
pint0@debian:~$ telnet 192.168.1.102
Line 38: Line 52:
 
</pre>
 
</pre>
  
NOTE:there is not a password the first time (just press enter)
+
NOTE: there is no password the first time (just press enter)
  
  
 
=== Windows ===
 
=== Windows ===
 
You have 2 options:
 
You have 2 options:
 +
 
====Command Prompt====
 
====Command Prompt====
 
# Go to '''start'''>'''run''' type "cmd" or go to '''start'''>'''all programs'''>'''accessories'''>'''Command Prompt'''
 
# Go to '''start'''>'''run''' type "cmd" or go to '''start'''>'''all programs'''>'''accessories'''>'''Command Prompt'''
 
# type <code>telnet [WTDV-live-ip]</code> (where [WTDV-live-ip] is the IP address we found before)
 
# type <code>telnet [WTDV-live-ip]</code> (where [WTDV-live-ip] is the IP address we found before)
 
# type  root as login and press 'enter' in password (as in no password)
 
# type  root as login and press 'enter' in password (as in no password)
====Use PuTTY====
 
#Read the instructions here [[#Using PuTTY | PuTTY]] with the only change being this option:
 
[[File:http://img51.imageshack.us/img51/1827/telnetoption.jpg]]
 
  
now we can change the password, by typing the command <code>passwd</code> in the terminal and then your password twice (for confirmation).
+
 
 +
====Use PuTTY====
 +
Read the instructions here [[#Using PuTTY | PuTTY]] with the only change being this option from '''SSH''' to '''Telnet''' [http://img51.imageshack.us/img51/1827/telnetoption.jpg]:<br>
 +
[[File:Telnetoption.jpg|none|||left|alt Putty Options]]<br>
 +
Now we can change the password, by typing the command <code>passwd</code> in the terminal and then your password twice (for confirmation).
 
The following is the output of that command:
 
The following is the output of that command:
 
<pre># passwd
 
<pre># passwd
Line 60: Line 76:
 
Password for root changed by root
 
Password for root changed by root
 
</pre>
 
</pre>
well done, now you have the root access and have a password,now you can use [http://en.wikipedia.org/wiki/Secure_Shell ssh] access.
+
'''NOTE:''' it does '''not display your password''' as you type for security reasons!!! It is not frozen! just type your new password, hit enter, type the '''same''' password, and hit enter again.
 +
 
 +
 
 +
Well done, now you have root access and have a password, so you can use [http://en.wikipedia.org/wiki/Secure_Shell ssh] access.
  
  
 
== 2. SSH Access ==
 
== 2. SSH Access ==
 +
Note: you must first set a root password (via telnet, see above) before you can login using SSH.
  
 
<pre>
 
<pre>
Line 72: Line 92:
 
   and integrity of data over an insecure network, such as the Internet.
 
   and integrity of data over an insecure network, such as the Internet.
 
</pre>
 
</pre>
 +
  
 
=== Linux ===
 
=== Linux ===
you can do this
+
You can do this
#open a terminal,if you use gnome go to '''Applications'''>'''Accessories'''>'''Terminal'''
+
#open a terminal (e.g. if you use GNOME go to '''Applications'''>'''Accessories'''>'''Terminal''')
#type <code>ssh root@your_ip</code> or <code>ssh your_ip -l root</code> type your password and done
+
#type <code>ssh root@your_ip</code> or <code>ssh your_ip -l root</code> type your password and you are done
 +
 
  
 
=== Windows ===
 
=== Windows ===
  
 
Available options are:
 
Available options are:
 +
  
 
==== Using PuTTY ====
 
==== Using PuTTY ====
*to enter you can use [http://www.chiark.greenend.org.uk/~sgtatham/putty/ PuTTY] a light program to connect to ssh an to others stuff(tunneling,etc,etc),here is the link to [http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe download]
+
*to enter you can use [http://www.chiark.greenend.org.uk/~sgtatham/putty/ PuTTY] a light program to connect to SSH and do other stuff (tunneling, etc.). Here is the link to [http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe download]
*open putty and you will see something like this [http://upload.wikimedia.org/wikipedia/commons/e/ed/FabianpintoPutty.png puty_imagen ]
+
*open putty and you will see something like this:<br>
*write your ip address and click open then this will appears [http://upload.wikimedia.org/wikipedia/commons/b/b6/Putty1.png putty_imagen_2]
+
[[File:Putty1.png|none|||left|]]<br>
*click yes and login [http://upload.wikimedia.org/wikipedia/commons/8/80/Putty2.png putty_imagen_3]
+
*write your IP address and click open.  Then this will appear:<br>
well now you are connected to your WDTV-live machine
+
[[File:Putty2.png|none|||left|]]<br>
 +
*click yes and login:<br>
 +
[[File:Putty3.png|none|||left|]]<br>
 +
Now you are connected to your WDTV-live machine.
 +
 
  
 
==== Using SSH Secure Shell ====
 
==== Using SSH Secure Shell ====
*you can download from [http://rapidshare.com/files/361618570/SSH.exe rapidshare] or [http://www.megaupload.com/?d=P3ZCJ0Y9 megaupload]
+
*you can download from [http://rapidshare.com/files/361618570/SSH.exe rapidshare] or [https://mega.co.nz/#!swEQ2AbC!YL4A106q2pG0zjqLGqm24Euc7F8PriZ5nG8HERZ2yp4 megaupload]
*the program look like this [http://upload.wikimedia.org/wikipedia/commons/9/96/FabianpintoSsh.png picture_ssh] then click in '''quick connect'''  
+
*the program looks like this. Click '''quick connect'''<br>
*will appear this [http://upload.wikimedia.org/wikipedia/commons/0/09/Ssh1.png imagen] "Host Name" is your ip_address and User Name is "root" then press '''connect'''
+
[[File:Ssh.png|none|||left|]]<br>
*then in [http://upload.wikimedia.org/wikipedia/commons/e/eb/Ssh2.png here] press yes
+
*next will appear this, "Host Name" is your ip_address and User Name is "root" then press '''connect'''<br>
* if you see [http://upload.wikimedia.org/wikipedia/commons/2/21/Ssh3.png this] congratulation you are in your WDTV-live machine
+
[[File:Ssh1.png|none|||left|]]<br>
 +
* then press yes<br>
 +
[[File:Ssh2.png|none|||left|]]<br>
 +
* if you see this, congratulations you are in your WDTV-live machine.
 +
[[File:Ssh3.png|none|||left|]]<br>
 +
 
 +
 
 +
== Tips ==
 +
 
 +
If you'd like to learn more about using the Linux Shell over SSH/Telnet [[Shell Tips | refer to this page]]

Latest revision as of 19:04, 1 August 2013

Introduction

According to Wikipedia telnet is

 Telnet (teletype network) is a network protocol used on the Internet or local area networks to provide a
 bidirectional interactive communications facility. Typically, telnet provides access to a command-line 
 interface on a remote host via a virtual terminal connection which consists of an 8-bit byte oriented 
 data connection over the Transmission Control Protocol (TCP). User data is interspersed in-band with 
 TELNET control information.

The Linux manual page for "telnet" tells us:

 The telnet command is used for interactive communication with another host using the TELNET protocol. 
 It begins in command mode, where it prints a telnet prompt ("telnet> "). If telnet is invoked with a 
 host argument, it performs an open command implicitly

Let's start

1. WDTV-Live IP Address

My WDTV-live is located at 192.168.1.102. One way to obtain this address is in your router. Another is navigating your WDTV to Settings>System setting>System information or to Network setting>Network setup and find your IP address.


2. Telnet to change password

If you flashed your WDTV for the first time or completely deleted your configuration there is by default no root password for telnet set, you have to set one in order to use SSH or FTP.
If you forgot your password you can reset the telnet/ssh and webend passwords using this application.


All Platforms (Webbrowser with Java)

  • Point your browser to the IP address of your WDTV and click on the Telnet icon.
  • (You might get a Java password prompt (a new small window), enter WDLXTV Webend password here [default: wdlxtv/wdlxtv])
  • In the black telnet window you will be prompted for a username, enter: root.
  • If you get asked for a password simply press RETURN.
  • Now enter passwd and hit RETURN.
  • You will be asked for a new password and a second time to confirm this password, enter the the new password twice.
  • Done.


Linux

Type this command:

telnet 192.168.1.102

Well, what are we doing? We are trying to enter like the Administrator(root) or Super User. You will see something like this

pint0@debian:~$ telnet 192.168.1.102
Trying 192.168.1.102...
Connected to 192.168.1.102.
Escape character is '^]'.

WDTVLIVE-6f1ec login: root
Password: 
#

NOTE: there is no password the first time (just press enter)


Windows

You have 2 options:

Command Prompt

  1. Go to start>run type "cmd" or go to start>all programs>accessories>Command Prompt
  2. type telnet [WTDV-live-ip] (where [WTDV-live-ip] is the IP address we found before)
  3. type root as login and press 'enter' in password (as in no password)


Use PuTTY

Read the instructions here PuTTY with the only change being this option from SSH to Telnet [1]:

alt Putty Options

Now we can change the password, by typing the command passwd in the terminal and then your password twice (for confirmation). The following is the output of that command:

# passwd
Changing password for root
New password:
Bad password: too weak
Retype password:
Password for root changed by root

NOTE: it does not display your password as you type for security reasons!!! It is not frozen! just type your new password, hit enter, type the same password, and hit enter again.


Well done, now you have root access and have a password, so you can use ssh access.


2. SSH Access

Note: you must first set a root password (via telnet, see above) before you can login using SSH.

  Secure Shell or SSH is a network protocol that allows data to be exchanged using a secure channel between two
  networked devices. Used primarily on GNU/Linux and Unix based systems to access shell accounts, SSH was designed
  as a replacement for Telnet and other insecure remote shells, which send information, notably passwords,
  in plaintext, rendering them susceptible to packet analysis. The encryption used by SSH provides confidentiality
  and integrity of data over an insecure network, such as the Internet.


Linux

You can do this

  1. open a terminal (e.g. if you use GNOME go to Applications>Accessories>Terminal)
  2. type ssh root@your_ip or ssh your_ip -l root type your password and you are done


Windows

Available options are:


Using PuTTY

  • to enter you can use PuTTY a light program to connect to SSH and do other stuff (tunneling, etc.). Here is the link to download
  • open putty and you will see something like this:
Putty1.png

  • write your IP address and click open. Then this will appear:
Putty2.png

  • click yes and login:
Putty3.png

Now you are connected to your WDTV-live machine.


Using SSH Secure Shell

Ssh.png

  • next will appear this, "Host Name" is your ip_address and User Name is "root" then press connect
Ssh1.png

  • then press yes
Ssh2.png

  • if you see this, congratulations you are in your WDTV-live machine.
Ssh3.png


Tips

If you'd like to learn more about using the Linux Shell over SSH/Telnet refer to this page