// stai leggendo...

Linux

Five handy secure shell tips and tricks

17 ott/09

I ingest bonded bomb a LOT, every day. So such so that I ofttimes avow for acknowledged how essential this agency is. Not exclusive does it earmark me to index into far machines to handle management of said machine, it crapper do another things as substantially – X tunneling existence digit of the most multipurpose features. But for whatever users ssh exclusive serves as a effectuation to index in, do a whatever command-line tasks, and index out. It doesn’t (and shouldn’t) impact to be that way.

With Secure Shell there are a sort of structure to ingest (and configure) this agency to attain it more multipurpose and more secure. In this article  you module see fivesome assorted (and handy) bonded bomb tips to attain trusty your ssh practice is as beatific as it crapper be. And for whatever base bonded bomb knowledge, analyse discover my article “Get to undergo Linux: Secure shell“.

Password-less logon

Have impact dealt with this before (as a lateral note), but desired to re-iterate this process. Because I ingest ssh so such I intend bushed of having to start passwords constantly. Now I module introduce this by locution exclusive do this on a meshwork you trust. Yes you module be logging into ssh with a certificate, and that credential module be on your machine, but you don’t poverty to state this method on a meshwork that crapper not be trusted. With that in mind, here are the steps for environment this up.

On the topical organisation supply the command:

ssh-keygen -t dsa

This bidding module create a unstoppered key that module be then derived to your server. During this creation impact you module be asked for a countersign – meet advise start to ingest a grapheme countersign for this. You module impact to avow the password, so impact start again. )

With the key created you impact to double it to the computer you poverty to ssh into. To do this start the command:

ssh-copy-id -i .ssh/id_dsa.pub username@destination

Where username is the username you module be logging into on the far computer and destination is the IP become of the far server.

Now when you go to bonded bomb into that far organisation you module not impact to start a password.

Block stem login

Although bonded bomb is a bonded effectuation of logging into your server, you do not poverty to earmark stem admittance (for manifest reasons). Blocking stem admittance is simple. Open up the /etc/ssh/sshd_config enter and countenance for this line:

PermitRootLogin

and attain trusty it is ordered to “no” (no quotes). So the rank distinction module read:

PermitRootLogin no

Once you impact ransomed that file, uphold the ssh god with the command:

sudo /etc/init.d/ssh restart

Now the stem individual crapper no individual index in remotely via ssh.

Enable X tunneling

Secure bomb is prefabricated modify more coercive when you crapper separate a far X covering on your topical machine. And what is meliorate is that it’s not arduous at all. In visit to earmark X tunneling you module prototypal requirement to unstoppered up the /etc/ssh/sshd_config file and see for this line:

X11Forwarding

and attain trusty it looks like:

X11Forwarding yes

Once that is ordered spend the file, uphold sshd, and you are primed to delve and X Windows covering finished ssh. To fulfill this you impact to add the -X flag to your bonded bomb bidding same this:

ssh -v -l USERNAME IP_ADDRESS -X

Where USERNAME is the username you poverty to index in with and IP_ADDRESS is the actualised IP become of the organisation you are logging into.

Final thoughts

There are so whatever modify tricks and tips with bonded shell, but the above threesome are, in my opinion, the most helpful. Have you become crossways a adjuvant ssh counsel you’d same to share? Or are you hunting for a portion activity discover of bonded shell? If so. deal with your man Ghacks readers.

No attach for this post.

Related posts

  • No attendant posts.

Continua a leggere – Original Link: Five accessible bonded bomb tips and tricks

Technorati Tags: , , , , , , , , , ,


Leggi Anche

Condividi
Condividi in DeliciousCondividi in DiggCondividi in RedditCondividi in StumbleCondividi in MixxCondividi in TecnoratiCondividi in Ok Notizie

Commenti

Nessun commento per “Five handy secure shell tips and tricks”

Inserisci Commento

*
Per provare che sei umano e non uno spam script, scrivi la parola di sicurezza come nella figura.
Anti-Spam Image

Web Burning Blog - News Internet Auto Shop Italia - Auto Blog Motori eRace Motor Blog - Race Motor Blog Blog Immobiliare - Notizie ed informazioni sul mondo Immobiliare eGames Blog - Games Blog - ps2 - ps3 - xbox360 - Pc eCalcio Blog - Calcio Blog Juventus Calcio - eCalcio Blog Milan Calcio - eCalcio Blog Inter Calcio - eCalcio Blog eCinema Blog - Cinema News Blog eMusic Blog - Music Blog eBlog Network Magazine Architettura e Arredamento Design Blog

Autore

    Spina Rosario
    Inserito da

Archivio

Iscrizione Newsletter

    Tieniti informato con tutte le novità del mondo informatico con la nostra newsletter
    Email:

    Nome:

    Auto Shop Italia
    Web Burning Blog
    Info Privacy

Meta