Piping Binary Data to a Remote Shell

Piping works transparently through SSH to remote shells. Consider:

cat myfile | ssh user@desktop lpr

tar -cf - source_dir | \
ssh user@desktop 'cat > dest.tar'

The first example pipes myfile to lpr running on the machine named desktop. The second example creates a tar file and writes it to the terminal (because the tar file name is specified as dash), which is then piped to the machine named desktop and redirected to a file.

Config File - LINUX


SSH looks for the user config file in ~/.ssh/config. A sample might look like:

ForwardX11 yes
Protocol 2,1

Using ForwardX11 yes is the same as specifying -X on the command line. The Protocol line tells SSH to try SSH2 first and then fall back to SSH1. If you want to use only SSH2, delete the ,1.

The config file can include sections that take effect only for certain remote hosts by using the Host option. Another useful config file option is User, which specifies the remote user name. If you often log in to a machine with ssh -l remoteuser remotehost or ssh remoteuser@remotehost, you can shorten this by placing the following lines in your config file:

Host remotehost
ForwardX11 yes
User remoteuser

Host *
ForwardX11 no

Now, you can type ssh remotehost to log on as user remoteuser with the ForwardX11 option turned on. Otherwise, ForwardX11 is turned off, as recommended above. The asterisk matches all hosts, including hosts already matched in a Host section, but only the first matching option is used. Put specific Host sections before generic sections in your config file.

A system-wide SSH config file, /etc/ssh/ssh_config, also is available. SSH obtains configuration data in the following order: command-line options, user's configuration file and system-wide configuration file. All of the options can be explored by browsing man ssh_config.

Speeding Things Up: Compression and Ciphers

SSH can use gzip compression on any connection. The default compression level is equivalent to approximately 4× compression for text. Compression is a great idea if you are forwarding X sessions on a dial-up or slow network. Turn on compression with ssh -C or put Compression yes in your config file.

Another speed tweak involves changing your encryption cipher. The default cipher on many older systems is triple DES (3DES), which is slower than Blowfish and AES. New versions of OpenSSH default to Blowfish. You can change the cipher to blowfish with ssh -c blowfish.

Cipher changes to your config file depend on whether you are connecting with SSH1 or SSH2. For SSH1, use Cipher blowfish; for SSH2, use:

Ciphers blowfish-cbc,aes128-cbc,3des-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc

X11 Forwarding - LINUX


You can encrypt X sessions over SSH. Not only is the traffic encrypted, but the DISPLAY environment variable on the remote system is set properly. So, if you are running X on your local computer, your remote X applications magically appear on your local screen.

Turn on X11 forwarding with ssh -X host. You should use X11 forwarding only for remote computers where you trust the administrators. Otherwise, you open yourself up to X11-based attacks.

A nifty trick using X11 forwarding displays images within an xterm window. Run the web browser w3m with the in-line image extension on the remote machine; see the Debian package w3m-img or the RPM w3m-imgdisplay. It uses X11 forwarding to open a borderless window on top of your xterm. If you read your e-mail remotely using SSH and a text-based client, it then is possible to bring up in-line images over the same xterm window.

Extend Windows 7 from 30 days to 90 Days trail Read more: http://www.technixupdate.com/windows-7-tricks-and-hacks/#ixzz0Til3ad2f

Follow the procedure below to extend your trail period

1.Firstly, Download Windows 7 Pre-Beta M3 Build 6801 from here.

2. Burn it on a DVD, and install windows 7.

Note: This hack will work after every days of use, so try these commands 2 times just some days before your 30 days trail is going to end.

3. When installation is complete, open Command Prompt.

Type any of the three commands below:

sysprep /generalize
slmgr.vbs –rearm
rundll32 slc.dll,SLReArmWindows

This is how you can get 90 = 30+60 days of Windows 7 trail period.

[ Thanks Sizlopedia for this trick ]

We will get Windows 7 soon, will post some new hacks and tricks on windows 7 soon so stay tuned.

Unlock Taskbar in Windows 7


Download the 32-bit or 64-bit tools as per your requirement and place it into the Windows directory.

Open command prompt with administrative privileges and type the following commands

  • takeown /f %windir%\explorer.exe
  • cacls %windir%\explorer.exe /E /G UserName:F (replace UserName with your username in windows 7)
  • taskkill /im explorer.exe /f
  • cd %windir%
  • start unlockProtectedFeatures.exe

Now you need to re launch the shell by clicking the launch button

Windows & Tricks LATEST


Get Quick Launch toolbar back

Right-click the taskbar, choose Toolbars / New Toolbar
In the folder selection dialog, enter the following string and hit OK:
%userprofile%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch
Turn off the "lock the taskbar" setting, and right-click on the divider. Make sure that "Show text" and "Show title" are disabled and the view is set to "small icons".
Use the dividers to rearrange the toolbar ordering to choice, and then lock the taskbar again.
Windows Vista taskbar

Right-click on the taskbar and choose the properties dialog. Select the "small icons" checkbox and under the "taskbar buttons" setting, choose "combine when taskbar is full".

Starting explorer from "My Computer"

To do this, navigate to Windows Explorer in the Start Menu (it's in the Accessories folder). Then edit the properties and change the target to read:
%SystemRoot%\explorer.exe ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}

Old behaviour for Windows Live Messenger

Navigate to C:\Program Files\Windows Live\Messenger\ and set the properties of msnmsgr.exe to Vista compatibility mode. This will place the Messenger icon back in your system tray and remove the 2 annoying tabs on the taskbar.

If you're wondering about the fish in the Windows 7 fish then it's a Betta Fish and also has 7 bubbles to signify Windows 7.