Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

In this tutorial, you will:

  • Create an account for a local server using password authentication.
  • View account details.
  • Verify the connection with client.
  • Create another account using SSH key authentication.
  • View account details.
  • Verify the connection with client.

Create a Shared Account with Password Authentication

Step 1

From the UDMG Admin UI navigation pane, select Shared Accounts. The Shared Accounts list displays.

Step 2

Click the Add icon () above the Shared Accounts tab.

Step 3

The Shared Account Details displays:

  • In the Account Name field, enter stonebranch-01. The Account Name is only for display and reference inside UDMG.
  • In the Login Name field, enter stonebranch-01. The Login Name is the name for the authentication, for example, the expected SFTP username. 
  • In the Password field, enter any value for instance ChangeMe.
Step 4

Click the Save icon ().

Step 5

From the UDMG Admin UI navigation pane, select Local Servers. The Local Servers list displays.

Step 6

Select or create a server, for example stonebranch-sftp-01.

The server details are populated on the Details tabs:

Step 7

Select the Accounts tab.

Step 8

Select the Pencil icon to add a shared account to the local server.


Step 9

Search for stonebranch-01 and add using the arrow. Click the Save changes button. 

Step 10

It's now possible to connect to the server with this account credentials:

$  sftp -P 4100 stonebranch-01@0.0.0.0
stonebranch-01@0.0.0.0's password:
Connected to 0.0.0.0.
sftp> ls
sftp-01-in

Create a Shared Account with SSH Key Authentication

Step 1

Follow the above steps again to create another shared account stonebranch-02.

Step 2

If you don't already have a public key, generate a new SSH key for this account, for example:

$ ssh-keygen -t ed25519 -C "stonebranch-02" -N "" -f stonebranch-02
Generating public/private ed25519 key pair.
Your identification has been saved in stonebranch-02.
Your public key has been saved in stonebranch-02.pub.
The key fingerprint is:
SHA256:gNvc9Km/Zoe6b/UEtfD0mIjjhiRO/eYujv/SU4+d8sk stonebranch-02
The key's randomart image is:
+--[ED25519 256]--+
|                 |
|     .      . o  |
|    . ...  . * = |
|     +o+o.o.o = .|
|    .oooS+o. .   |
|      . ..= o .  |
|        .= + * . |
|       .o.O +.=. |
|      .o=%*+ oE  |
+----[SHA256]-----+

Note

The public key must be in OpenSSH format.
The following key types are supported: ed25519, ecdsa, rsa, dss. RSA and DSS are obsolete and not supported by all SFTP software servers and clients.

Step 3From the UDMG Admin UI navigation pane, select Local Servers. The Local Servers list displays.
Step 4Select or create a server, stonebranch-sftp-02.
Step 5

Follow the above steps again to add the shared account, stonebranch-02 to the local server.

The details are populated in the Accounts tab. 

Step 6

Click the Certificates / Keys tab.

Step 7

Click the Add icon ().

Step 8

The Certificate Details displays.

  • In the Name field, enter stb-02-pub.
  • In the Public Key field, select enter the user public key, for instance the content of the file stonebranch-02.pub:


The fields can be resized for easier display, simply move up or down the resize grabber in the corner of the field.

Step 9

Click Submit button.

The SSH key is stored for this account and client connection can be performed with SSH key authentication.

Step 10

It's now possible to connect to the server with this account private key:

$ sftp -i stonebranch-02 -P 4101 stonebranch-02@0.0.0.0
Connected to 0.0.0.0.
sftp> ls
sftp-01-in
  • No labels