SSH: verschil tussen versies

Uit 0318 Media BV
Naar navigatie springenNaar zoeken springen
Nieuwe pagina aangemaakt met 'Show current folder in SSH: pwd Remote access from one server to another over SSH Disable safe_mode in shell: /usr/bin/php -c /etc/php5/apache2/php.ini /var/www/vhosts/ruudkok.nl/httpdocs/shop/scripts/import.php @MODIFIED Search replace via terminal: sed -i '' 's/search/replace/g' filename.txt Eerste 200 rijen uit file pakken: head -n200 ta-coolblue.csv > CB.csv 4 stappen om SSH mogelijk te maken zonder wachtwoord: Alle stappen doe je in...'
 
Geen bewerkingssamenvatting
 
Regel 1: Regel 1:
Show current folder in SSH: pwd
Show current folder in SSH: pwd


    Remote access from one server to another over SSH
Remote access from one server to another over SSH


    Disable safe_mode in shell: /usr/bin/php -c /etc/php5/apache2/php.ini /var/www/vhosts/ruudkok.nl/httpdocs/shop/scripts/import.php @MODIFIED
Disable safe_mode in shell: /usr/bin/php -c /etc/php5/apache2/php.ini /var/www/vhosts/ruudkok.nl/httpdocs/shop/scripts/import.php @MODIFIED


    Search replace via terminal: sed -i '' 's/search/replace/g' filename.txt
Search replace via terminal: sed -i '' 's/search/replace/g' filename.txt


    Eerste 200 rijen uit file pakken: head -n200 ta-coolblue.csv > CB.csv
Eerste 200 rijen uit file pakken: head -n200 ta-coolblue.csv > CB.csv


4 stappen om SSH mogelijk te maken zonder wachtwoord:
=4 stappen om SSH mogelijk te maken zonder wachtwoord:=


Alle stappen doe je in de terminal, vanaf de client.
Alle stappen doe je in de terminal, vanaf de client.

Huidige versie van 21 nov 2024 om 10:43

Show current folder in SSH: pwd

Remote access from one server to another over SSH

Disable safe_mode in shell: /usr/bin/php -c /etc/php5/apache2/php.ini /var/www/vhosts/ruudkok.nl/httpdocs/shop/scripts/import.php @MODIFIED

Search replace via terminal: sed -i 's/search/replace/g' filename.txt

Eerste 200 rijen uit file pakken: head -n200 ta-coolblue.csv > CB.csv

4 stappen om SSH mogelijk te maken zonder wachtwoord:[bewerken]

Alle stappen doe je in de terminal, vanaf de client.

  • ssh-keygen -t rsa (alleen de allereerste keer, dus niet meer op de MacBook Pro 2020)
  • ssh user@123.456.78.90 mkdir -p .ssh
  • cat .ssh/id_rsa.pub | ssh user@123.456.78.90 'cat >> .ssh/authorized_keys'
  • ssh user@123.456.78.90 "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"