Using PuTTY In Ubuntu Jaunty (9.04)


PuTTY is a GTK-based GUI client-interface for SSH connections and eases the setup for port forwarding, SSH public key authentication, and automated login.

$ sudo apt-get install putty

A user would run Putty to create the SSH tunnel (instead of the ssh command) and then run Krdc. Note that PuTTY security keys are not generally compatible with SSH security keys. I was not able to get PuTTY to work with Krdc.

Connect using SSH Agent
With SSH Agent you can automate the use of public key authentication and open an XDM or VNC session using a script. See this tutorial.

Setup an SSH server

Install the OpenSSH server:
 

$ sudo apt-get install openssh-server

Note: The OpenSSH server can also be installed when doing a server installation as an option from the LiveCD.
Note: An OpenSSH server can also be set up on a Windows server using Cygwin. See these instructions.

Limit authorized SSH users

See How to limit the user accounts that can connect through SSH.
OpenSSH Public Key Authentication

See this OpenSSH Public Key Authentication Tutorial.
In brief, it is necessary to generate a public / private key pair. On your client machine, generate the pair:


ssh-keygen

A prompt asks for a passphrase. If you wish to use SSH without a password from a secure client (to which no one but you has access), leave the passphrase blank. If you enter a passphrase, you will be asked for this passphrase each time you use the SSH client. By default, a 2048-bit RSA key pair is generated and stored in the /home/user/.ssh folder.

The private key is named id_rsa and is meant to stay in that folder. The public key is id_rsa.pub and is meant to be copied to the SSH server. On the SSH server, there is a similar folder /home/user/.ssh (for whichever user is hosting the SSH server). In that folder is a file called authorized_keys2. The contents of id_rsa.pub must be copied into that authorized_keys2 file. (You can use a text editor or can concatenate the files with the cat command).

To keep keys private, they should be accessible only to user, the owner of the file. For example,


$ chmod 600 /home/user/.ssh/id_rsa

This makes the file only accessible to user. You could also make the entire .ssh folder accessible only to user:


$ chmod 700 /home/user/.ssh

Happy Testing...!!!

Sources :

http://ubuntuguide.org/wiki/Ubuntu:Jaunty

13 comments:

  1. Today, while I was at work, my sister stole my iphone and tested to see if
    it can survive a twenty five foot drop, just so she can be a youtube sensation.
    My iPad is now destroyed and she has 83 views. I know this is entirely off topic but
    I had to share it with someone!

    Feel free to surf to my web blog - Know More
    my webpage - More information

    ReplyDelete
  2. excellent points altogether, you simply received a emblem
    new reader. What may you recommend about your submit that you just made a few days in the past?
    Any positive?

    Also visit my weblog; salons Johannesburg

    ReplyDelete
  3. You made some good points there. I checked on the web to learn more about the issue and found most individuals will go along
    with your views on this website.

    Check out my webpage - diamond Cutting

    ReplyDelete
  4. Hi there! I know this is somewhat off-topic however I had to ask.
    Does managing a well-established blog like yours take a
    lot of work? I am brand new to running a blog but I do write in my diary every day.
    I'd like to start a blog so I will be able to share my experience and thoughts online. Please let me know if you have any kind of recommendations or tips for brand new aspiring bloggers. Thankyou!

    Also visit my website costing Gauteng

    ReplyDelete
  5. This is very interesting, You are a very skilled
    blogger. I have joined your rss feed and look forward to seeking more
    of your excellent post. Also, I have shared your site in my social networks!


    my blog :: Beauty Salon Boksburg

    ReplyDelete
  6. Way cool! Some extremely valid points! I appreciate you penning this post
    and also the rest of the website is also really good.



    Also visit my web blog ... cellulite Urban

    ReplyDelete
  7. It is the best time to make a few plans for the future and it is time to be happy.
    I have read this publish and if I may I wish to counsel you few interesting issues
    or suggestions. Maybe you could write subsequent articles regarding this article.
    I wish to learn more things approximately it!

    Feel free to surf to my page ... know more

    ReplyDelete
  8. Thanks for sharing such a pleasant thought, paragraph
    is nice, thats why i have read it fully

    Here is my blog: visit link

    ReplyDelete
  9. Hi! I just wanted to ask if you ever have any problems with hackers?
    My last blog (wordpress) was hacked and I ended up losing months of hard work due to no backup.

    Do you have any solutions to protect against hackers?

    Here is my website ... know more

    ReplyDelete
  10. Can I simply say what a relief to discover an individual who really understands what they're discussing over the internet. You certainly realize how to bring an issue to light and make it important. More people need to read this and understand this side of your story. I was surprised that you're not
    more popular given that you surely have the
    gift.

    Here is my webpage waste Minimisation Cape Town

    ReplyDelete
  11. Hi! I've been reading your site for some time now and finally got the bravery to go ahead and give you a shout out from Houston Texas! Just wanted to mention keep up the good work!

    Feel free to surf to my web-site :: click here

    ReplyDelete
  12. I all the time used to read paragraph in news papers but now as I am
    a user of web thus from now I am using net for articles, thanks to web.


    My page ... http://www.youtube.com/watch?v=9SnPSlwYwpQ

    ReplyDelete
  13. I juyst like the helpful info you supply in your articles.
    I'll bookmark your blog and test once more here frequently.
    I am soightly certain I will be tod many new stuff proper rght here!
    Best of luck for the next!

    My pabe :: become Locksmith Pennsylvania

    ReplyDelete

Please Comment...!!