Citizens guide to the 21st century
scratch book of what you should know to be a citizen of the 21st century

The sound server has the adress 172.31.40.30 and is reachable within the VMK Network or trough vpn from remote. Copy sound files to the server This is done on the command line using the secure copy command scp. This will copy any file from your local harddisk into the home directory of the user vmk […]

1. Add client in server hosts file, – set ClientNameAlias – set BackupFilesOnly and/or BackupFilesExclude 2. install rsync on client 3. add server key to clients root authirized_keys 4. once manually ssh root@cliens from the server as user backuppc to add the new client to the known_hosts file

#!/bin/sh export sshchk=`ps auxwww |grep remo@groupware|wc -l` if [ $sshchk -gt 1 ] then exit else export mac=`/sbin/ifconfig | grep eth | awk {‘print $5’}` wget –no-check-certificate x.y.ch/getid.php?mac=$mac -O /tmp/id export remo_id=`cat /tmp/id` ssh remo@groupware.vmk.zhdk.ch -i /home/c1audio/.ssh/id_rsa -o ExitOnForwardFailure=yes -NR $remo_id:localhost:22 & fi # m h dom mon dow command * * * * * […]

Categories: networking | Add a Comment

Anstelle von Passwörtern verwenden wir asymmetrische Schlüsselpaare. Das sind in der Praxis zwei Dateien, wovon die eine öffentlich ist und die andere auf keinen Fall weitergegeben werden darf. Folgenden Befehl eingeben und 3 mal mit enter bestätigen: sq131-2-4-vmk-itzs14895:~ itz$ ssh-keygen -t rsa -b 4096 Generating public/private rsa key pair. Enter file in which to save […]