ethernet configuration, hostname

yum install net-tools for ifconfig hostname hostnamectl -h –help              Show this help –version           Show package version –transient         Only set transient hostname –static            Only set static hostname –pretty            Only set pretty hostname -P –privileged        Acquire privileges before execution –no-ask-password   Do not prompt for password -H –host=[USER@]HOST  Operate on remote host Commands: status                 Show current hostname settings […]

Read More

ssh key authentication

create ssh keys ls -ld ~/.ssh mkdir -m 700 ~/.ssh cd ~/.ssh ssh-keygen -b 2048 -t rsa -f id_rsa -P “” // CentOS requires 2 “ chmod go-rwx ~/.ssh/id_rsa scp id_rsa.pub username@remotemachine:~ ssh username@remotemachine “cat /Users/username/id_rsa.pub >> ~/.ssh/authorized_keys” ssh username@remotemachine “rm /Users/username/id_rsa.pub” https://help.apple.com/advancedserveradmin/mac/4.0/#/apd002AE571-2E56-409A-A1F9-A71736EE9040 ssh-agent eval `ssh-agent -s` ssh-add /root/.ssh/bhr.id_rsa Enter passphrase for /root/.ssh/bhr.id_rsa: Identity added: […]

Read More

ddclient

sudo vi /usr/local/etc/ddclient/ddclient.conf daemon=300 # check every 300 seconds syslog=yes # log update msgs to syslog mail=root # mail all msgs to root mail-failure=root # mail failed update msgs to root ssl=no # use ssl-support. Works with ssl library // ssl=yes default pid=/usr/local/var/run/ddclient/pid use=web server=dyndns.inwx.de protocol=dyndns2 login=bhensler password= bernhard.hensler.net,www.bme-ravensburg.de sudo /usr/local/sbin/ddclient -force sudo rm /usr/local/var/run/ddclient/ddclient.cache […]

Read More