Ssh

Unison ssh on Windows

Copy unison in program files, ssh in windows directory.
edit C:\documents and settings\user\.unison\default.prf:

sshcmd=ssh.exe
sshargs=-P 16

Download:
Unison-2.32.52
ssh

source1 source2

By WladyX on 7 January, 2011 | Ssh, Windows | A comment?

Delete line with sed

useful for ssh key changes

sed -i 215d ~/.ssh/known_hosts

By WladyX on 15 December, 2010 | General, Scripts, Ssh | A comment?

gnome-keyring ssh agent doesn’t unlock ssh keys anymore bug

Replacing the folder ~/.gnome2/keyrings with the one I used in Ubuntu 10.04 following with log-off and log-in worked for me.

source

By WladyX on 22 October, 2010 | Gnome, Ssh, Ubuntu | A comment?

Changing a Passphrase with ssh-keygen

ssh-keygen -f .ssh/id_dsa -p

source

By WladyX on 8 September, 2010 | Security, Ssh | A comment?

SSH Port Forwarding

ssh -L 8888:www.linuxhorizon.ro:80 user@computer -N

   +----------+<--port 22-->+----------+<--port 80-->o-----------+
   |SSH Client|-------------|ssh_server|-------------|   host    |
   +----------+             +----------+             o-----------+
  localhost:8888              computer      www.linuxhorizon.ro:80

other example:
ssh -R 28:10.10.10.8:25 -R 29:10.10.10.1:25 root@server.ro -N

source1 source2

To enable GatewayPorts:

/etc/sshd_config:
GatewayPorts yes

source

 

By WladyX on 27 August, 2010 | General, Scripts, Ssh | A comment?

lshell

lshell lets you restrict a user’s shell environment to limited sets of commands, choose to enable or disable any command over SSH (e.g. SCP, SFTP, rsync, etc.), log user’s commands, implement timing restrictions, and more.

source

By WladyX on 7 May, 2010 | Cool Apps, General, Link, Scripts, Security, Ssh | A comment?

Linux connection manager

By WladyX on 14 April, 2010 | General, Ssh | A comment?

Load ssh Key at KDE Startup

aptitude install ksshaskpass

cat >~/.kde/Autostart/ssh-add.sh <<_EOT_
#!/bin/sh
export SSH_ASKPASS=/usr/bin/ksshaskpass
ssh-add </dev/null
_EOT_

chmod +x ~/.kde/Autostart/ssh-add.sh
~/.kde/Autostart/ssh-add.sh

source

By WladyX on 10 March, 2010 | General, Ssh, Ubuntu, X11 | A comment?

Configuring X11 forwarding with HP-UX

# vi /opt/ssh/etc/sshd_config
and make sure "X11Forwarding yes" is uncommented. If you made a change to this file, restart the daemon:
# /sbin/init.d/secsh stop
# /sbin/init.d/secsh start

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1092967

By WladyX on 9 December, 2009 | General, HP-UX, Ssh, X11 | A comment?

SSH AllowUsers

 # This is ssh server systemwide configuration file.

          Port 22
          ListenAddress 192.168.1.1
          HostKey /etc/ssh/ssh_host_key
          ServerKeyBits 1024
          LoginGraceTime 600
          KeyRegenerationInterval 3600
          PermitRootLogin no
          IgnoreRhosts yes
          IgnoreUserKnownHosts yes
          StrictModes yes
          X11Forwarding no
          PrintMotd yes
          SyslogFacility AUTH
          LogLevel INFO
          RhostsAuthentication no
          RhostsRSAAuthentication no
          RSAAuthentication yes
          PasswordAuthentication yes
          PermitEmptyPasswords no
          AllowUsers admin

 AllowUsers admin

    The option AllowUsers specifies and controls which users can access ssh services. Multiple users can be specified, separated by spaces.

Configure the /etc/ssh/sshd_config file

By WladyX on 7 August, 2009 | General, Ssh | A comment?