Untuk terhubung melalui SSH di Mac, Anda dapat mengikuti petunjuk di bawah ini:
- Login ke Client Area dan akses Control Panel dengan menklik Log in to Control Panel di salah satu layanan hostingmu
- Pilih ikon SSH Access .
- Anda sekarang harus membuat kunci publik, pada Mac ini dilakukan melalui utilitas Terminal . Buka Terminal di Mac.
- Masukkan perintah berikut ke terminal:
ssh-keygen - Tekan Enter
- Anda akan diminta untuk memasukkan lokasi yang Anda inginkan untuk menyimpan kunci publik dan pribadi. Dalam hal ini, kami akan menyimpan ini sebagai lokasi default. Tekan Enter
- Anda akan dimintai kata sandi, dalam panduan ini kita akan membiarkan ini kosong. Jika Anda memasukkannya, pastikan Anda mengingat ini karena Anda akan diminta untuk ini nanti. Tekan Enter.
- Anda akan diminta untuk mengonfirmasi frasa sandi - karena kami membiarkan ini kosong, cukup tekan Enter.
- Kunci Anda akan dibuat dan kunci publik akan disimpan di lokasi tertentu, dalam contoh kami, telah disimpan di:
/Users/user/.ssh/id_rsa.pub. - Salin jalur dan masukkan perintah berikut:
- kucing /Pengguna/pengguna/.ssh/id_rsa.pub.
- Kunci akan dikeluarkan, salin seluruh kunci dari awal hingga akhir.
- Tempelkan kunci kembali ke bidang Kunci Publik di bagian Akses SSH. Pegangan harus ditambahkan secara otomatis. Tekan Tambahkan Kunci Publik.
- Harap dicatat bahwa dapat memakan waktu hingga 5 menit.
- Kembali ke Terminal dan masukkan nama pengguna dan nama host SSH yang ditemukan di bagian atas bagian Akses SSH, itu harus seperti domain.com@ssh.stackcp.com Anda harus mengawali dengan perintah ssh sebagai berikut:
cat /Users/user/.ssh/id_rsa.pub. - Anda akan diminta untuk mengonfirmasi bahwa Anda ingin terhubung, cukup ketik ya dan tekan enter.
Anda seharusnya berhasil terhubung melalui SSH dari Mac Anda ke paket hosting Anda di IT Center ID.
How do I connect via SSH on an Apple Mac?
To connect via SSH on a Mac you can follow the instructions below:
- Login to Client Area then access to Control Panel by clicking Log in to Control Panel on your hosting service
- Select the SSH Access icon.
- You’ll now need to generate a public key, on a Mac this is done via the Terminal utility. Open Terminal on the Mac.
- Enter the following command into the Terminal:
ssh-keygen - Press Enter
- You’ll be prompted to enter the location that you want the public and private keys saving. In this case, we’ll keep this as the default location. Press Enter
- You’ll be prompted for a passphrase, in this guide we’ll just leave this empty. If you enter one, make sure you remember this as you’ll be prompted for this later. Press Enter.
- You’ll be asked to confirm the passphrase - since we’ve left this empty just press Enter.
- Your keys will have been generated and the public key will have been saved in a specified location, in our example, it has been saved in:
/Users/user/.ssh/id_rsa.pub. - Copy the path and enter the following command:
cat /Users/user/.ssh/id_rsa.pub. - The key will be outputted, copy the whole key from the start to the end.
- Paste the key back into the Public Key field in the SSH Access section. The handle should be added automatically. Press Add Public Key.
- Please note that can take up to 5 minutes.
- Head back to Terminal and enter the SSH username and hostname found at the top of the SSH Access section, it should be something like domain.com@ssh.stackcp.com You’ll need to prefix it with the ssh command as follows:
ssh domain.com@ssh.stackcp.com - You’ll be prompted to confirm you would like to connect, simply type yes and press enter.
You should have successfully connected via SSH from your Mac to your hosting package at IT Center ID.
