This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
ssh_and_scp [2015/10/22 12:11] admin |
ssh_and_scp [2018/05/24 09:05] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== SSH and SCP ====== | ====== SSH and SCP ====== | ||
- | This article describes basic usage of SSH and SCP in DD-WRT NXT | + | This article describes basic usage of SSH and SCP in DD-WRT NXT. |
+ | |||
+ | For all instructions on this page, you have to enable SSH first! | ||
===== Overview ===== | ===== Overview ===== | ||
Line 12: | Line 14: | ||
Login the WEB-Interface, then navigate to: | Login the WEB-Interface, then navigate to: | ||
- | * Services | + | * Network Services |
* SSH | * SSH | ||
- | In the upper context Box: | + | Under Remote Configuration: |
* set SSH Server to Enabled | * set SSH Server to Enabled | ||
- | * hit the Submit button | + | * change the SSH Port to your needs (default is 22) |
- | In the lower context Box: | + | Under "Set the root password": |
* type in your new SSH password at "new Password" | * type in your new SSH password at "new Password" | ||
- | * retype the SSH password | + | * retype the SSH password at "Retype Password" |
- | * hit the Submit button | + | |
- | {{:documentation:general:vpn:dropbear-enable-ssh.png?direct|}} | + | == hit the Apply all Changes button in the upper right corner == |
+ | |||
+ | {{:documentation:general:vpn:dropbear-enable-ssh.png?direct|}} | ||
==== Related topics ==== | ==== Related topics ==== | ||
- | * [[documentation:general:vpn:vpn_provider|VPN Service Provider]] | + | * [[documentation:general:vpn:vpn_service_provider|VPN Service Provider]] |
| | ||
Line 37: | Line 40: | ||
For using SSH in Microsofts Windows, you have to download [[http://www.putty.org/|Putty]] or another SSH client application of choice. | For using SSH in Microsofts Windows, you have to download [[http://www.putty.org/|Putty]] or another SSH client application of choice. | ||
- | {{:2015-10-22-132555_450x409_scrot.png?direct&300|}} | + | {{:2015-10-22-132555_450x409_scrot.png?direct&500|}} |
* Enter the IP-Address of your router in the Host Name field | * Enter the IP-Address of your router in the Host Name field | ||
Line 43: | Line 46: | ||
* Hit Open at the very bottom to connect | * Hit Open at the very bottom to connect | ||
- | Putty will once ask you to verify the SSH Servers fingerprint, you can answer with yes. | + | Putty will once ask you to verify the SSH Servers fingerprint, you can answer with either Yes or No. |
- | {{:putty_cert.png?direct&300|}} | + | {{:putty_cert.png?direct&500|}} |
You will be prompted for login informations. | You will be prompted for login informations. | ||
- | {{:putty_login_prompt.png?direct&200|}} | + | {{:putty_login_prompt.png?direct&500|}} |
Username will always be 'root' | Username will always be 'root' | ||
Line 59: | Line 62: | ||
Starting: | Starting: | ||
- | {{:winscplogin.png?direct&400|}} | + | |
+ | {{:winscplogin.png?direct&500|}} | ||
On the right hand session menu, select SCP as File protocol, | On the right hand session menu, select SCP as File protocol, | ||
+ | |||
enter the IP-Address of the router (192.168.11.1 is default) | enter the IP-Address of the router (192.168.11.1 is default) | ||
+ | |||
User name is always 'root' | User name is always 'root' | ||
+ | |||
The password can be specified in the Webinterface (Service>SSH) | The password can be specified in the Webinterface (Service>SSH) | ||
+ | |||
Hit the login button at the very bottom | Hit the login button at the very bottom | ||
- | ==== Connecting using Linux ==== | ||
- | == Installing == | + | |
+ | {{:winscp-start-roothome.png?direct&500|}} | ||
+ | |||
+ | by double clicking the right hand side ".." file in the view, | ||
+ | you'll be presented with the top level directory structure "/" | ||
+ | |||
+ | Then you can drag & drop files directly to the routers File-System | ||
+ | |||
+ | {{:winscp-router-rootdir-scp-vpnpass.png?direct&500|}} | ||
+ | |||
+ | |||
+ | ==== Connecting using Linux ==== | ||
* Install the OpenSSH package using your distributions package management system | * Install the OpenSSH package using your distributions package management system | ||
Line 91: | Line 109: | ||
</code> | </code> | ||
+ | ==== Copy using Linux SCP ==== | ||
+ | Where "vpnuserpass.conf" is a file, in the current working directory, | ||
+ | "root@192.168.11.1" are the connection informations | ||
+ | |||
+ | ":/etc" is the place on the remote system (the router) | ||
+ | |||
+ | |||
+ | <code> | ||
+ | #~ scp vpnuserpass.conf root@192.168.11.1:/etc | ||
+ | </code> | ||
+ | |||
+ | the resulting file on the router will be placed as: | ||
+ | /etc/vpnuserpass.conf | ||
==== Connecting using MacOS ==== | ==== Connecting using MacOS ==== | ||
Line 118: | Line 149: | ||
</code> | </code> | ||
+ | ==== Copy using MacOS SCP ==== | ||
+ | |||
+ | Where "vpnuserpass.conf" is a file, in the current working directory, | ||
+ | |||
+ | "root@192.168.11.1" are the connection informations | ||
+ | |||
+ | ":/etc" is the place on the remote system (the router) | ||
+ | |||
+ | |||
+ | <code> | ||
+ | #~ scp vpnuserpass.conf root@192.168.11.1:/etc | ||
+ | </code> | ||
+ | |||
+ | the resulting file on the router will be placed as: | ||
+ | /etc/vpnuserpass.conf | ||
==== UCI Config System ==== | ==== UCI Config System ==== | ||