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 […]
Tag Archives: ssh
backuppc client setup
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
some remote tunnel stuff
#!/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 https://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 * * * * * […]
ssh schlüssel generieren
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 […]