Archive for category: ssh

Triggering Actions Like Sending a Mail on SSH Login

26 July, 2010 (06:30) | Linux, Mac OS X, ssh | By: Wolfgang

One way to trigger actions at an OpenSSH server login, is to use the sshrc file in your sshd configuration folder, usually /etc/ssh.

Use the following command in the sshrc file to send a mail:
mailx -s "$HOSTNAME Remote Login from $USER at `date`" mail@example.com

Of course every other command or notification method can be used too, ...

Connecting Through SSH SOCKS Proxy on Linux or Mac OS X

23 June, 2010 (06:30) | Miscellaneous, ssh, [English Posts] | By: Wolfgang

Problem
You work for a client that provides you with a connection to transfer files over SSH (SFTP). He wants to adjust the corporate firewall settings so that requests from your IP address don't get rejected. The problem is that you work from different places with different IP addresses. It would be time-consuming to add ...

Problems with VNC if Visual Effects are Enabled in Ubuntu

8 June, 2010 (06:30) | Linux, ssh, Ubuntu, [English Posts] | By: Wolfgang

Ubuntu's default VNC server vino seems to have serious problems if you connect to it with visual effects enabled on the machine. At least with my configuration it only updates the remote host user interface once. Then the remote machine still reacts to clicks but I can't see the effect of the click.

One pragmatic ...

Enabling Remote Desktop (vino) on Ubuntu and Reset its Password over SSH

12 May, 2010 (22:16) | Linux, ssh, Ubuntu, [English Posts] | By: Wolfgang

In a previous post I described how to enable Screen Sharing on a Mac via ssh, today I will sum up the necessary steps to accomplish the same on a Linux running the vino VNC server, Ubuntu 10.04 LTS in my case. Starting the VNC server If you have to adjust the configuration options ...

Enabling Screen Sharing via SSH on Mac OS X

9 May, 2010 (22:30) | Mac OS X, ssh, [English Posts] | By: Wolfgang

Problem: You are working on a OS X machine via ssh and run into a situation where a VNC display of the remote host would be helpful. The only problem is that it has Screen Sharing disabled.

Solution: Just use the following command on the terminal:

sudo sh -c "/bin/echo -n enabled > /Library/Preferences/com.apple.ScreenSharing.launchd"

(I found this ...