Connect to GW6 over SSH: Difference between revisions

From Phobos Wiki
Jump to navigation Jump to search
(Uus lehekülg: ' '''Since version 1065 we disabled FTP and now use SFTP (Secure File Transfer Protocol)''' Since Windows doesn't have a built in '''SFTP''' client you need to download one. For...')
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
  '''Since version 1065 we disabled FTP and now use SFTP (Secure File Transfer Protocol)'''
  '''Since version 1065 we disabled FTP and now use SFTP (Secure File Transfer Protocol)'''
== SFTP'ing into device with password ==
Since Windows doesn't have a built in '''SFTP''' client you need to
Since Windows doesn't have a built in '''SFTP''' client you need to
download one.
download one.
Line 7: Line 8:
If you do not have administrative privileges to install software on your
If you do not have administrative privileges to install software on your
computer, then download [http://winscp.net/eng/download.php "Portable executables" of WinSCP]
computer, then download [http://winscp.net/eng/download.php "Portable executables" of WinSCP]


{| class="wikitable"
{| class="wikitable"
Line 16: Line 19:
|-
|-
|User name  
|User name  
|ftpuser
|martem
|-
|-
|Password
|Password
|WLAf7gg6
|Xooviet0
|-
|-
|Protocol
|Protocol
|STFP
|SFTP
|-
|-
|Allow SCP fallback
|Allow SCP fallback
|true
|true
|}
|}
== Setting up passwordless login ==
# Create yourself a public '''RSA''' key
## Linux
### ssh-keygen -t rsa
## Windows
### puttygen
# Send the public key to device
## Linux
##* scp id_rsa.pub martem@10.0.0.24:id_spirit_rsa.pub
# Add your key in '''.ssh/authorized_keys'''
## Log in to device
### Linux
###* ssh martem@10.0.0.24
### Windows
###* putty
## List all files and directories in current folder
##* ls -la
## Create directory '''.ssh''' if it doesn't exist
##* mkdir .ssh
## Copy your public key to '''authorized_keys''' file
##* cat id_spirit_rsa.pub >> .ssh/authorized_keys
# Done.

Latest revision as of 11:15, 2 July 2013

Since version 1065 we disabled FTP and now use SFTP (Secure File Transfer Protocol)

SFTP'ing into device with password

Since Windows doesn't have a built in SFTP client you need to download one.

For example: WinSCP, FileZilla

If you do not have administrative privileges to install software on your computer, then download "Portable executables" of WinSCP


WinSCP session settings
Option Value
Host name IP address of GW6
User name martem
Password Xooviet0
Protocol SFTP
Allow SCP fallback true



Setting up passwordless login

  1. Create yourself a public RSA key
    1. Linux
      1. ssh-keygen -t rsa
    2. Windows
      1. puttygen
  2. Send the public key to device
    1. Linux
      • scp id_rsa.pub martem@10.0.0.24:id_spirit_rsa.pub
  3. Add your key in .ssh/authorized_keys
    1. Log in to device
      1. Linux
        • ssh martem@10.0.0.24
      2. Windows
        • putty
    2. List all files and directories in current folder
      • ls -la
    3. Create directory .ssh if it doesn't exist
      • mkdir .ssh
    4. Copy your public key to authorized_keys file
      • cat id_spirit_rsa.pub >> .ssh/authorized_keys
  4. Done.