This page is not fully translated, yet. Please help completing the translation.
(remove this paragraph once the translation is finished)
OpenWrt idare yöntemlerinden biri SSH üzerinden komut-satırı arayüzü'dür.
OpenWrt varsayılan olarak 22/tcp portunu gelen SSH bağlantıları için dinler.
Yönlendiricine “ssh ile bağlanmak” için, yönlendiricinin genellikle 192.168.1.1 olan LAN IP adresini kullanarak takip eden komutu bir uçbirim öykünücüye girebilirsin:
ssh root@192.168.1.1
Yönlendiricine ilk ssh bağlantısı kurduğunda, muhtemelen RSA anahtar parmakizi hakkında bir uyarı göreceksin.
Eğer bunun senin OpenWrt aygıtının adresi olduğuna eminsen, sadece yes yazıp Enter'a bas.
Sonra yonlendiricine verdiğin parolayı gir, veya bu başlangıç kurulumuysa Enter'a bas.
İşte bir örnek oturum:
$ ssh root@192.168.1.1 <== Sen bunu yazarsın
The authenticity of host '192.168.1.1 (192.168.1.1)' can't be established.
RSA key fingerprint is SHA256:4VbDA/MOc7inPiyllF5f0r3Q6iEx89ddKdhLGBovsiY.
Are you sure you want to continue connecting (yes/no)? yes <== ve bunu
Warning: Permanently added '192.168.1.1' (RSA) to the list of known hosts.
root@192.168.1.1's password: <== ve buraya parolayı
BusyBox v1.28.4 () built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt 18.06.2, r7676-cddd7b4c77
-----------------------------------------------------
root@OpenWrt:~# <== sonraki komutu buraya yaz
Yönlendiricindeki ssh oturumunu sonlandırmak için, exit yaz ve Enter'a bas.
Bu sayfanın geri kalanı Linux, macOS, veya Windows'un OpenWrt aygıtına bağlanmak için kullanabileceği çeşitli uçbirim öykünücüleri tanımlar.
Tüm Linux dağıtımları varsayılan kurulumlarının parçası olarak bir komutsatırı ssh istemcisi sağlarlar.
ssh root@192.168.1.1 yaz (“ssh” komut, “root” bağlanmakta olduğun OpenWrt kullanıcısı, ve “192.168.1.1” OpenWrt varsayılan IP adresi)Ayrıca Linux genellikle varsayılan yüklü olabilecek veya olmayabilecek SCP/SFT istemcilerine (OpenWrt'de dosyaları açmak/düzenlemek/aşağı veya yukarı yüklemek için) de sahiptir, Nerede olduklarını ve güncel yüklenme durumlarını öğrenmek üzere “scp” ve “sftp” için dağıtımının belgelendirmesini yoklamalı veya paket yönetici arayüzünle arama yapmalısın. Komut satırı SCP istemcisi için scp kılavuzu(ing)'nu oku veya kullanmayı öğreten öğretici klavuzları ördeğe aratabilirsin.
Midnight Commander uçbirimde çalışan, metin temelli bir dosya yöneticisidir.
OpenWrt'deki uzak dosyalara mc ile erişebilirsiniz:
Kabuk bağlantısı(Shell link)'nı seçinroot@192.168.1.1/ girin ve TAMAM seçin and press OKDahili olarak scp benzeri FISH protokolü üzerinden çalışır bu sayede yüklenmiş SFTP sunuçusu gerektirmez.
Windows Terminal for Windows 10 or the legacy ConHost (both giving access to Windows PowerShell, Windows Command Prompt, WSL Bash), PuTTY, MinGW (installed together with Git), Cmder, SmarTTY, and WinSCP are terminal emulators that allow you to SSH into an OpenWrt router.
Both Windows PowerShell and Command Prompt allows using the default Windows 10 SSH client. That SSH client is an optional windows feature and has to be enabled.
If you have installed a WSL distribution, the SSH client is usually preinstalled in there.
If you directly launch cmd.exe, powershell.exe or wsl.exe the legacy ConHost terminal will open.
Otherwise, you can install the modern Windows Terminal from the store and select any of these shells from there.
ssh root@192.168.1.1 (“ssh” is the command, “root” is the OpenWrt user you are connecting to, and “192.168.1.1” is OpenWrt default IP)The Windows 10 optional SSH feature also includes SCP client (to open/edit/download/upload files in OpenWrt via SSH). Try google for some SCP tutorials to learn how to use it. Otherwise, use WinSCP which is way easier for SCP purposes.
Powershell provides SSH access.
The Windows Subsystem for Linux is a convenient way to run a Linux environment of your choice including most,command-line tools, utilities, and applications directly on Windows. For detailed steps of how to install WSL on Windows 10, refer to Microsoft's documentation: https://docs.microsoft.com/en-us/windows/wsl/install-win10
PuTTY gives you command-line access to OpenWrt.
putty.exe on your Windows client → PuTTY's login window pops up.Session category of PuTTY's login window, look for the field Host Name (or IP address) and simply enter the IP-address (e.g. 192.168.1.1) of your OpenWrt device, keep the default provided port 22.Open button at the Bottom to open a connection. This will pop up a shell windows, asking to login as. Login as root with the OpenWrt password you have defined some time before. If you have not yet set a password yet on “root”, you will not be asked for the password.Setting up key-based authentication.
puttygen.exe. Save the private key to the PC and add the public key to /etc/dropbear/authorized_keys on your OpenWrt device.openwrt.ppk file you created before). Best is to click “Browse...” and select the file via the file dialog.Automating connections.
root.openwrt.lan in Saved Sessions and click the Save button.@ sign, for example call PuTTY with: putty.exe @openwrt.lanWinSCP allows you to browse the OpenWrt file system in Windows Exlorer like GUI-style.
Installation package or portable executables and install or unzip them on your Windows clientWinSCP.exe on your Windows client, WinSCP's login window will pop upNew Site on the left, then enter your OpenWrt device IP address (192.168.1.1) on the right side into Host name, keep the default port 22. In User name enter root, in Password, enter your root password (or leave blank, if you have not set a password yet)Login at the bottom of the Window.Editing OpenWrt config files with WinSCP's integrated GUI editor.
Edit from the context menu.Cmder for Windows is an open-source terminal emulator that runs on Windows. It is free to use and provides an easy “command line shell” that allows you to ssh into OpenWrt. Its attractive fonts and color scheme are easy on the eyes. The Full distribution is preferred (over the mini distribution), since it provides a bash emulation, with a Unix-y suite of commands.
ssh root@192.168.1.1 then press Return.SmarTTY gives you command line access to OpenWrt and allows you to open/edit/download/upload files in OpenWrt, and is overall more modern and user-friendly than PuTTY (another tool detailed below).
opkg update && opkg install openssh-sftp-server to install it. If the next step fails, it might be necessary to reboot the OpenWrt device for this new service to start up properly.After the first time you connected to a device, SmarTTY saved a profile, so you can connect again to the same device (at that IP address with that password) by just doubleclicking its icon on the first window you see when starting SmarTTY. You can right-click on this profile icon to edit it again, if needed.
On macOS (formerly Mac OSX) any terminal emulator will allow you to ssh.
To ssh into your OpenWrt router at 192.168.1.1, type ssh root@192.168.1.1, then press Return.
On Chrome OS, Secure Shell App will allow you to ssh.