Skip to main content

Linux command: telnet

RHEL install telnet: yum install -y telnet
RHEL install telnet: yum install -y telnet

telnet-ssl on Ubuntu

Before installing telnet-ssl, there is no -z options

tuyendq@2:~$ telnet -h
telnet: invalid option -- 'h'
Usage: telnet [-4] [-6] [-8] [-E] [-L] [-a] [-d] [-e char] [-l user]
        [-n tracefile] [ -b addr ] [-r] [host-name [port]]
tuyendq@2:~$
tuyendq@2:~$ apt show telnet-ssl
Package: telnet-ssl
Version: 0.17.41+0.2-3build1
Priority: extra
Section: universe/net
Source: netkit-telnet-ssl
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Mats Erik Andersson <mats.andersson@gisladisker.se>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 217 kB
Provides: telnet-client
Depends: libc6 (>= 2.15), libssl1.1 (>= 1.1.0), libstdc++6 (>= 5)
Download-Size: 85.2 kB
APT-Sources: http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
Description: telnet client with SSL encryption support
 The telnet command is used for interactive communication with another host
 using the TELNET protocol.
 .
 SSL telnet replaces normal telnet using SSL authentication and
 encryption. It interoperates with normal telnetd in both directions.
 It checks if the other side is also talking SSL, if not it falls back
 to normal telnet protocol.
 .
 Advantages over normal telnet: Your passwords and the data you send
 will not go in cleartext over the line. Nobody can get it with
 tcpdump or similar tools. With SSLtelnet you can also connect to
 https-server like https://www.mozilla.org. Just do
 'telnet -z ssl www.mozilla.org 443'

tuyendq@2:~$ sudo apt install telnet-ssl

After install telnet-ssl

tuyendq@2:~$ telnet -h
telnet: invalid option -- 'h'
Usage: telnet [-4] [-6] [-8] [-E] [-K] [-L] [-X atype] [-a] [-d] [-e char]
        [-l user] [-n tracefile] [ -b addr ] [-r]
        [-z ssl] [-z secure] [-z debug] [-z verify=int]
        [-z cacert=file] [-z cert=file] [-z key=file]
        [host-name [port]]
tuyendq@2:~$

telnet -z ssl smtp.gmail.com 465

tuyendq@2:~$ telnet -z ssl smtp.gmail.com 465
Trying 142.250.101.108...
Connected to smtp.gmail.com.
Escape character is '^]'.
220 smtp.gmail.com ESMTP t21sm4101108pfe.82 - gsmtp
EHLO tuyen
250-smtp.gmail.com at your service, [173.82.240.78]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8

Popular posts from this blog

Powershell: Get-Content - tail command on Windows

Love tail command on Linux ? Try Get-Content with Powershell 3.0+.

Data Recovery Softwares

Follow 3-2-1 backup rule so you do not need these data recovery softwares.

Linux command: printenv

printenv - print all or part of environment NAME        printenv - print all or part of environment SYNOPSIS        printenv [OPTION]... [VARIABLE]... DESCRIPTION        Print  the  values  of the specified environment VARIABLE(s).  If no VARIABLE is speci‐        fied, print name and value pairs for them all.        -0, --null               end each output line with NUL, not newline        --help display this help and exit        --version               output version information and exit        NOTE: your shell may have its own version of printenv,  which  usually  supersedes  the        version  described  here.  Please refer to your shell's documentation for d...