netstat
netstat -tnpa | grep sshd
fuser
fuser -u ssh/tcp
ps
ps -ef | grep 'sshd'
netstat
netstat -tnpa | grep sshd
fuser
fuser -u ssh/tcp
ps
ps -ef | grep 'sshd'
Upload & Sync directories/files (without password prompt)
SSH Key
 ssh-keygen
Copy SSH Key to Remote Server
 ssh-copy-id -i ~/.ssh/id_rsa.pub remoteUser123@remote-host-or-ip
Sync Files & Directories
Wenn man mehrere Dateien und Ordner sicher hochladen möchte:
rsync -avH /var/my/local/directories/ -e ssh remote-username@remote-server.example.com:/var/www/vhosts/remote_directory_example1
Sync Backup (wichtig: backup/ => backup) :
$ vi ~/.bashrc
export LS_OPTIONS='--color=auto'
eval "$(dircolors -b)"
alias ls='ls $LS_OPTIONS'
If you want to apply the changes in a running bash session, run:
source ~/.bashrc
 rsync -r -a -v -e ssh --delete root@remote-server.example.com:/userdir123/backups /local-server-path/backups/--delete wird Dateien und Ordner auf lokalen Server löschen, die auf den Remote-Server nicht mehr verfügbar sind.
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host
sdfg
scp -r myUserName@www.server2.com:/var/www/ /var/www/new/dir
Diese Fehler steht in Logs, wenn der Cronjob läuft :
/bin/sh: 1: Syntax error: end of file unexpected (expecting ")")
Was ist hier in diesem Cronjob-Eintrag falsch?
41 18 * * * /bin/tar -zcf /backups/www_$(date +%Y-%m).tar.gz /home/website2/public_html
Jemand schickt ständig Spam auf meiner Website. Ich wollte IP blockieren. Aber es geht nicht mit Hosteurope's SSH. Unter Admin Panel gibt es auch keine Option
# apf -d 117.21.252.148
-bash: apf: command not found
# iptables -A INPUT -s 117.21.252.148 -j DROP
-bash: iptables: command not found
Wie kann ich einen IP auf Hosteurope blockieren?
Wenn man unter Linux tausende Dateien und Ordner überschreiben will, bekommt man meistens Fehlermeldungen wegen rechte usw. Das "mv" (move/umzug) Befehl kann es nicht. Eine Lösung ist "cp" also kopieren. Dann wird jedes Mal gefragt wenn eine datei vorhanden ist. Um diesen Schritt auch automatisch zu überwinden, sagen wir von Anfang an "ja" zu alle System Fragen.
#yes | cp -a pfad/zu/neueDateien/* pfad/zu/uberschriebene/dateien
Neueste Kommentare
Alternative (without warnings like "no crontab for user")
Alternative (without warnings like "no crontab for dovecot") to see all tasks:
php 8.3 apcu
php 8.3 apcu failed
über Plesk hat es geklappt.
phpize failed error?
install:
# sudo apt install php-devphpize
# sudo apt install…
phpize
# sudo apt install php-devdetails
Problem:
/opt/plesk/php/8.3…
Problem:
Problem:PHP APCu caching…
Problem:
Hilft "cp -avf old new && rm…
Hilft "
cp -avf old new && rm -rvf old"nicht?Same with Drush 13 + PHP 8.3 and my Solution
Same with Drush 13 + PHP 8.3
Error : Failed to install the required package 'RPM' by using AP
Initializing...
Error : Failed to install the required package 'RPM' by using APT. Please install it manually.
Exit
Solution:
Installieren & Aktivieren
So habe es installiert und dann mit Hilfe von Key/Code (über Website von Acronis Cyber Protect) aktiviert: