Thursday, June 5, 2014

Remotely Access Kali Terminal Using Putty

In this post we will use PuTTy to remotely or locally access Kali terminal with root priveleges. We will use SSH for this tutorial, though you can use Telnet or any other mode too.

Putty

Some theoretical inforamtion about putty for your digestion.
PuTTY is an SSH and telnet client, developed originally by Simon Tatham for the Windows platform. PuTTY is open source software that is available with source code and is developed and supported by a group of volunteers. (putty.org)

Download

You can download putty here. http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html . That's the official download location. Softpedia, CNET, etc. also provide downloads. You will find a lot of links there, and it will take a minute to find out what you need to download. However, for the sake of ease, the link below this line is likely to be what you are looking for.
A Windows installer for everything except PuTTYtel

Installation is quite easy, nothing you can't handle.

Kali Configuration

There are a few things that need to be done before PuTTy starts working. Firstly, you would be using SSH to connect to Kali (main advantage of SSH is that it's secure, you can search google for more info on SSH). By default, the SSH service isn't started in Kali, but you can still check with
root@kali:~# service --status-all
 [ - ]  ssh
It will display a long list. The - against ssh indicates it is not running. Depending on whether the SSH is installed or not, you can execute the following. Run the second command first, if it works fine the installation isn't required, if not, then execute first command.

root@kali:~#apt-get install openssh-server (to install SSH)
root@kali:~#service ssh start (to start the service)

Optional : If you are connecting remotely and are afraid that someone will eavesdrop your data, then you can use public private key encryption offered by SSH. For this you need to create an RSA key.
root@Kali:~# ssh-keygen -t rsa
You will have to specify where to store the key (just press enter for default location) and then specify a key. This step is quite unnecessary for most users.

Also, type ifconfig to get your eth0 ip address. 

Starting PuTTy on Windows


Start Putty, and you will see a putty configuration dialog. Enter the IP that you found out in the last step. The port will be 22 and connection type SSH. Click open and you'll be prompted to enter the credentials for terminal access. Type in 'root' and your password. You will now see something like this-
You can run commands from here and they will be executed on your Kali machine. There are no functionality restrictions as such, and you can do almost anything from this terminal. Type exit to end the session.

Auto start SSH on Kali Boot

Now every time you will boot into Kali, the SSH service will not be running. You will have to type the following everytime to boot - service ssh start

However, there are alternatives. One straightforward one is to go to Applications -> System Tools -> Preferences -> Startup Application and click on add. Enter the command as service ssh start and add whatever you feel like for Name and Comment (nothing technical there).

Alternatively, you can use update-rc.d to get the same functionality.  It helps add/remove services which will run at booting. Execute the following command to add SSH to startup services
root@kali:~#update-rc.d ssh enable

You can of course write your script to start ssh, but that wouldn't do us much good since starting the service is as easy as one line of code (service ssh start) and you don't write scripts that execute just one command (that is quite an inefficient way of usingputty scripts)

37 comments:

  1. But my ssh root login not support by using console.

    ReplyDelete
    Replies
    1. login as normal user and after that you can switch your account to ROOT login using su command

      Delete
  2. my ssh service dosnt get started

    ReplyDelete
  3. I read it three times, but could not get it. I came here to get ideas for Computer Science Research Topics, but sadly have to return empty-handed. It’s funny how a final semester computer science student is not able to understand these concepts. A big question mark on the higher education system.

    ReplyDelete
  4. autocad crack is the latest version of CAD software, essential both in the construction industry and in mechanical engineering. You can create 2D or 3D drawings for surface technology. It is one of the most popular graphics programs from Autodesk Corporation.
    autocad 2016 crack
    chimera tool premium crack

    ReplyDelete
  5. This process is very useful for us and through this, we can do work remotely and complete our tasks and job. Many people use it and they save their time and money. Dissertation writing services.

    ReplyDelete
  6. The ISO code of New Zealand is NZ according to the ISO 3166 standard. The local name of the country is Aotearoa. New Zealand capital city is Wellington. People in New Zealand speak the English, and Māori languages. On 25 November 1947, New Zealand emerged as a sovereign political entity. In the year 11/25/1947, New Zealand emerged as a sovereign political entity. The largest cities in New Zealand are Wellington, Auckland, Christchurch. http://www.confiduss.com/en/jurisdictions/new-zealand/

    ReplyDelete
  7. During the covid, everyone began to study and work remotely. Therefore, this is not news.
    This is a great article and useful. I also work as a freelancer writing articles and essays at home.
    Our service has an academic essay database
    the choice is huge. On any subject.
    We write efficiently and quickly.
    We have a lot of feedback
    Detailed information can be found on the main page

    ReplyDelete
  8. Hong Kong is often referred to as a tax haven, because taxation rates are very low — dividends, offshore income and capital gains are not taxed at all. In charging tax, Hong Kong implements the territorial source principle. This means that, in general, income is taxed only when it is derived from business or trade inside Hong Kong. Nevertheless, there are a small number of business income sources to which the territorial source principle does not apply, and these revenues are taxed at source (for example, royalties received by non-residents for the use of literary property or copyrighted materials). http://www.confiduss.com/en/info/blog/article/hong-kong-company-formation/

    ReplyDelete
  9. I'm visiting your site for the first time, and I found this to be a very good tutorial. Good job for all the explanation, and giving hints on what else to look up on Wikipedia/Google to gain a greater understanding. Keep up the great work as I go through your other posts! Thank you
    Make girls chase you

    ReplyDelete
  10. Great! These types of software are very useful. VPNs are appeared to be the moderate form of these programs. I used to take academic help online so what I have observed is that, most of the dissertation writers London based assure strict privacy to sustain their credibility. For this purpose, they use such software that can make their connections secure and protect their customers’ data. Using these type of encryptions are safe and beneficial.

    ReplyDelete
  11. Technologistan is the popoular and most trustworthy resource for technology, telecom, business and auto news in Pakistan

    ReplyDelete
  12. The boof xanax stage is the initial phase in treating liquor addiction. Withdrawal indications normally die down inside around one to about fourteen days subsequent to beginning detox; be that as it may, this could take longer relying upon the seriousness of your Alcohol Use Disorder (AUD). From that point, you will actually want to zero in on different parts of the recuperation cycle, like various exercises, treatments, advising meetings, and backing choices.

    ReplyDelete
  13. The remotely access can also provide in assignment service with complete guidance
    https://www.ukassignmenthelp.uk/do-my-assignment/

    ReplyDelete
  14. This is a savvy blog. I would not joke about this. You have such a lot of information about this issue, thus much enthusiasm. You likewise know how to make individuals rally behind it, clearly from the reactions corporate security consulting

    ReplyDelete
  15. This asset give a bunch of video and a pragmatic examination pointed toward supporting working logically in the study hall and relating science to certifiable encounters. acmpr license ontario

    ReplyDelete
  16. There are bunch of jobs that can dome remotely like essay writing service from anywhere to specialized subjects of specialization

    ReplyDelete
  17. Informative Post! I would like to thank you for sharing this useful content with us. I admire your work. Looking for the technical need to resolve the SBCGlobal Email Login Issues. If yes, then contact us.

    ReplyDelete
  18. Your blog gave us critical information to work with. Each and each tip of your post are incredible. Much appreciated for sharing. Keep on contributing to a blog.. https://shaperoflight.com/

    ReplyDelete
  19. You have a genuine capacity for composing extraordinary substance. I like how you think and the manner in which you address your perspectives in this article ! maui seo

    ReplyDelete
  20. It is a great idea u provide about the remote access . It is also great that nowadays we can study onine and do our papers too. Last time I got my papers on https://essays-writers.com/psychology-essay-writing-service.html

    ReplyDelete
  21. It is remarkable to see that specific people really put forward some energy into managing their locales. I'll make sure to return again veritable soon. it's genuinely astonishing. Much gratitude to you for granting your article to us, I really regard your information, which I genuinely appreciate, and I would visit your site again. black and white cabinets

    ReplyDelete
  22. Hello, 1depositcasinocanada this is the place that attracts most players today.

    ReplyDelete
  23. Kickstart your startup firm with our staggering digital marketing and SEO services.

    ReplyDelete
  24. Although I'm hearing that for the first time, if it's true, I must be living a long life because I'm already pursuing my master's. Since they are the most qualified people I've ever met, the people from whom I purchase the education thesis topics must have lived the longest.

    ReplyDelete
  25. This article is very informative and helps us to know a new trick. I would recommend students to use this link, for online data collection for their PhD research

    ReplyDelete
  26. I will do research on it after coming back from desert safari Dubai. It seems to be a good topic for me. I think I will able to do it with passion.

    ReplyDelete
  27. Red Dog provides users about a hundred 우리카지노 and sixty on line casino games consisting of slots, table games, and an incredible selection of live supplier tables. With the help of our expert gamblers, we did the legwork for you and rounded up a listing of the best actual money gambling sites. Our primary selection is Ignition, as it stands out from the remainder with beneficiant bonuses and an incredible poker part. Monkey Knife Fight, like its name, is a novel web site on our list right now.

    ReplyDelete
  28. Your posts really brought positivism to a work that looks overwhelm!

    ReplyDelete
  29. I really enjoy reading your posts where I can get such useful information. Thanks for all your advice. It’s invaluable
    https://birdsoasis.com

    ReplyDelete
  30. Your blog is always a great source of information and inspiration. Keep up the fantastic work! At Design Fictives, we are dedicated to delivering exceptional website design and development services that cater to businesses of all sizes. Our team of proficient designers and developers possess a wealth of experience in utilizing cutting-edge technologies to craft visually striking and effective.

    ReplyDelete
  31. The Drive Jacket is more than just a fashion statement; it's an embodiment of confidence, style, and intrigue. This jacket lets you step into the shoes of the mysterious and stoic character from the film, allowing you to embrace your own inner leading man.

    ReplyDelete
  32. Thanks for sharing this article with us about putty. This is very useful article for me. I will be download putty from your link. Now its time to avail Kabou taxi cab services in Southfield Mi for more information.

    ReplyDelete

© Kali Tutorials, 2016. Unauthorized use and/or duplication of this material without express and written permission from this site’s author and/or owner is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to Shashwat Chaudhary and Kali Tutorials with appropriate and specific direction to the original content.
Bitcoin: 1B5aLqJcMW7zznffTxQwta8JTZsxBDPguC