Skip to main content

Ubuntu How To: Setup Telnet,SSH & FTP service

Open terminal & become root(#) :  sudo -i 

For Telnet :

             1.  Install the package telnetd
 
                        # apt-get install telnetd

             2.  Now check telnet is running or not

                       # nmap localhost

                 The output must consist ' 23 Telnet ' .By default telnet service runs on 
                 23 port number.
                
                 If nmap is not installed , install nmap     
                  
                       # apt-get install nmap
      
             3. For starting or stoping the telnet service

                  # /etc/init.d/openbsd-inetd {start|stop|status}
                                  or
                  # service openbsd-inetd {start|stop|status}

For Ssh :

           For security reasons telnet service is not very much use. So it is  recommended to use ssh . By default ssh service runs on ubuntu if not then
      
           1. Install ssh
      
               # apt-get install ssh

           2.  Check ssh service runs or not

                      # nmap localhost

                The output must consist " 22 SSH" . By deafult ssh runs on 22 port
                number.
          
          3. For starting or stoping the ssh service
            
               #/etc/init.d/ssh {start|stop|status}
                         or
               # service ssh {start|stop|status}

For Ftp :

         1. Install package vsftpd
     
                # apt-get install vsftpd
       
        2.  Check ftp service runs or not

     
                 # nmap localhost

             The output must consist " 21 FTP" . By deafult ftp runs on 21 port
             number.

        3. For starting or stoping the ftp service
         
               #/etc/init.d/vsftpd {start|stop|status}
                         or
               # service vsftpd {start|stop|status}

Comments

Popular posts from this blog

How To: Generating Table Report via JSON data-source in Jasper Report

Recently, I got a chance to generate reports using JSON data source in Jasper Report via Java Spring application. As I was newbie in Jasper Report; I tried to find out tutorials to get started with JSON data source and populate JSON data in table. I thought it will be smooth but its not; you need to do some configuration in JRXML to populate the data fields. In this How - To, I will try to explain how to setup JSON data source and pull data field in iReport (Jasper Report - Report Designer Tool) and then generate a table.   Note: For Java 8 users, refer this link to open iReport http://stackoverflow.com/questions/23902977/ireport-not-starting-using-jre-8 First we create static JSON file student.json: [{"name" : "ABC", "age" : 23, "address" : "11 street", "taking_hostel" : "No"},{"name" : "DEF", "age" : 22, "address" : "1 street", "taking_hostel" : ...

How To: Automate MS Excel

MS Excel, sometimes we got some task which is time taking and require good manual effort. To automate these kind of task and making our life easy there are two ways - 1) Macro - MS Excel provide Macros functionality to automate tasks in Excel. We can record our steps ( go to 'View' tab then Record Macro) then run this recorded Macro to perform the same task again. It will be good if you know VB Scripting to write general algorithm Macros. 2) Python - Python has excel API xlrd and xlwt for reading and writing Excel documents. Python is easy to use and you can code easily as compare to VB Scripting. With Python Excel API we can easily automate the excel task. I) Setup the environment - Download Eclipse  - Eclipse is a Intergrated Development Environment in which we can easily write code. Download Python . Download Python Excel API . Open Eclipse - then go to Help menu bar - then Eclipse Marketplace Search pydev and install the Pydev - Python IDE for Eclipse  Aft...

How to host DC hub

A DC(Direct Connect) hub is a common sharing platform to share files (audio/video/documents etc.). So , to host DC hub In Ubuntu (below 12.10) : $ sudo apt-get install opendchub After installing opendchub $ sudo opendchub Then it will ask you for port number on which DC hub will listen for user connections , so provide a port number (eg. 789 or 20103) then it will ask you for a admin link password and hub link password , so provide both passwords. Now you successfully configured the DC hub, so start the opendchub service $ sudo /etc/init.d/opendchub start and for stopping $ sudo /etc/init.d/opendchub stop Ubuntu 12.10 and other varients : You will find the open source package for opendchub , download that and then # gunzip opendchub.tar.gz # tar -xvf opendchub.tar # cd opendchub # apt-get install  libperl-dev # ./configure #make #make install # opendchub      Now the same thing it will ask you for DC hub port number to lis...