Search in the Swizzonic FAQ

All About SSH

With Secure Shell (SSH), you can set up a secure connection between your computer and the one where your website is located. Webmasters can then access the shell of the web server and execute commands there. User data, as well as files will be transferred in encrypted form.

Some application examples for SSH:

  • Setup of a secure connection to the web server and secure transfer of files
  • Edit files directly on the web server
  • Backup of files (e.g. set up and load database dumps)
  • Setup of permissions for files and directories

You can find your SSH access data under “WEB-ADMIN” in the navigation point “SSH Access”. in the account. There you can set up an SSH access over the link “new account”, if no SSH access has been set up yet.

SSH and PHP shell, you can work directly on the command line of the Linux server – comparable to the command prompt on a Windows PC.

Please note:
The shell is a very powerful tool. With a small typo you can cause great damage and permanently delete your entire data. So you should be very careful when using the commands!

Overview of major SSH commands:

  • cp – copies a file A from location B to location C
    Beispiel: cp ./B/A.php ./C/A.php
  • mv – move a file or rename it
    Example: mv before.txt after.txt
    Example: mv before.txt ../folder/after.txt
  • rm – delete a file
    Example: rm file.php
  • cd – change the directory
    Example: cd ../folder
  • mkdir – create a directory
    Example: mkdir folder
  • find -search a file
    Example: find . | grep name
  • ls – list the directory content
    Example: ls -la
  • chmod – change the directory permissions
    Example: chmod 765
  • touch – create a new empty file
    Example: touch file.php
  • tar xfzv – unpack .tar(.gz)-files
    Example: tar xfzv archiv.tar.gz
  • unzip – unpack .zip-files
    Example: unzip
  • tar -cvzf – packing of files from a folder in an archieve
    Example: tar -cvzf archiv.tar.gz /kunden/ordner