Quantcast
Channel: SSH – SudoAll.com
Browsing latest articles
Browse All 14 View Live

Image may be NSFW.
Clik here to view.

Starting vnc on Display 0 ( local display ) from a remote ssh session

i.e. You wnet home need your desktop have ssh no vnc !! Here is the easy solution.. Install x11vnc. $ DISPLAY=localhost:0 x11vnc & connect to the display using vnc et voila ! BTW Teamviewer also...

View Article



Screen script for multi-user session or reminding you to create a screen on...

A common problem when many people share large systems as the same user ( I know .. I know but anyways move on )  is that when you logon you might want to take over where someone else left off. Also...

View Article

Using Stunnel to Encrypt Unsecure Connections

So you’re a fully signed up ‘tin foil hatter’ and you have an old app that communicates over the internet but doesn’t use SSL? Not to worry, there is a solution for you and its called stunnel. Stunnel...

View Article

Recording a session for a user when he / she logs in ssh

  To start recording each session add this to the users .profile file DATE=$(date +”%Y%m%d%H%M”) mkdir /log/$DATE script -t 2>/log/$DATE/bashlogs.timing -aqf /log/$DATE/bashlogs.script   to playback...

View Article

Image may be NSFW.
Clik here to view.

Using Puttygen to create a ssh key and passwordless login with putty to Centos.

The ssh password-less login works in a  simple way. Though sometime people find it confusing. The basics: >  Client side has a private key pointed to by >  Server side has the public key of the...

View Article


Image may be NSFW.
Clik here to view.

Disabling IPv6, breaks SSH X11 Forwarding in Linux CENTOS and UBUNTU all...

This was a weird one. It took me ages to discover why SSH X11 died at some point after tuning a box. It so happens that disabling IPv6 ( not used on my networks) is assumed in SSH at some point and if...

View Article

Image may be NSFW.
Clik here to view.

Run a local script on remote machine with parameters

So you have a script on the local machine and you want to run it remotely and pass arguments to it : ssh user@remote 'cat | bash /dev/stdin param1 param2 .. paramN' < /usr/scripts/localscript.sh...

View Article

Script to verify that a path is synchronized across multiple machines via ssh

This is a script I wrote for work to look through a number of remote servers via ssh (shared keys or include a .pem (id_rsa) file to compare a paths and all it’s subfolders. The result is a report of...

View Article


Image may be NSFW.
Clik here to view.

Automatically passing ssh password in scripts especially to ESX where...

First you need to install sshpass. Ubuntu/Debian: apt-get install sshpass Fedora/CentOS: yum install sshpass Arch: pacman -S sshpass Example: sshpass -p "YOUR_PASSWORD" ssh -o StrictHostKeyChecking=no...

View Article


Image may be NSFW.
Clik here to view.

Get ssh key fingerprint for comapring safely

SSh keys can be long and unwieldy to compare. Many platforms digest them to md5 formats for non disclosure such as github. This command will give you the digested fingerprint of an ssh key in linux /...

View Article
Browsing latest articles
Browse All 14 View Live


Latest Images