at now +10 minutes <<< "rm -rf /tmp/tobedeleted"
at now +1 minutes <<< "init 6"
/etc/init.d/networking stop && /etc/init.d/networking start
atq
atrm 2
For multiline, consider a "HERE-doc"
at now +10 minutes <<ENDMARKER
rm -rf /tmp/tobedeleted
echo all done | mail -s 'completion notification' sysadmin@example.com
ENDMARKER
In Firefox, the solution is easy. Simply type about:config in the address bar and set network.proxy.socks_remote_dns to true. This will have the remote end (i.e., the machine you are SSH’ing to) handle the DNS lookups.
Parfois il arrive qu'un fichier de conf soit corrompu a cause dun caractère invisible a la con qui peut venir dun copier coller ou autre.. Pour vérifier ça, on peut dumper le fichier en affichant ces caractères : car -e fichier
Quelques films ont lair bien; a DL et a matter
Encore du netcat
Faut que je m'y remette et que je me fasse des mémo pour netcat et hping
Port knocking avec packet dans distrib debian
Un serveur, mais surtout un client pour faire du port knocking
screen -S machineA (ensuite on se co en ssh à machineA, puis CTRL A D pour detach)
screen -S machineB (ensuite on se co en ssh à machineB, puis CTRL A D pour detach)
etc
At the end of the day :
screen -ls affiche tous les screens (avec chacun une connexion vers le serv en ssh)
screen -r machineA pour aller sur le A
screen -r machineB pour aller sur le B
alias utiles :
alias sls='screen -ls' #Pour lister les screen
alias sr='screen -r' #Pour recover un screen
alias sn='screen -S' #Pour créer un nouveau screen
add on pour avoir le status de nagios dans ff
tuto utilisé au final avec ubuntu gnome remix
Pour utiliser machinerebond pour accéder aux *.vm automatiquement :
$ cat .ssh/config
Host=machinerebond
Hostname=machinerebond.fqdn.com
User=root
Host=*.distant
User=root
ProxyCommand=ssh -W %h:22 machinerebond
Alternative :
D'abord se co sur la machine rebond avec un -A pour ramener sa key dans l'agent distant
Ensuite on peut se co sur les autres machines, mais plus long.
Autres directives possibles :
ServerAliveInterval 30
ServerAliveCountMax 120
Port 22000
User fooey
IdentityFile ~/.ssh/github.key
LocalForward 9906 127.0.0.1:3306
more : http://www.openbsd.org/cgi-bin/man.cgi?query=ssh_config&apropos=0&sektion=0&manpath=OpenBSD+Current&arch=i386&format=html