USE THE TERMINAL
Add devices and credentials
Save the devices you manage in Inventory, each in a folder and with a credential, import a device list from another tool, and keep the passwords and keys the app signs in with in one place.
Verified against AI NetShell 0.4.20
Inventory is the list of devices you manage. A saved device holds a name, an address and port, its device type, the folder it sits in and the credential the app signs in with. A credential is saved once and assigned to as many devices as use that account; its password, key passphrase and enable password go to Windows Credential Manager, not to a file the app writes. None of this needs an account: the account unlocks Lina, not the inventory.
You need the device's address, its device type, and the account you sign in with: a username and password, or a username and a private key file. Saving a device or a credential writes to this PC only and contacts nothing, so the first connection is the test. Opening the session is covered in Terminal basics.
1. Add a device#
- Select Inventory in the left rail, then the plus button at the top of the pane (its tooltip reads Add a device or cloud account), then Add new device…. To start the device in a folder, right-click the folder and select Add new device… there. On a fresh install the empty workspace offers Add a device; it opens the same form. The Add device form opens.
- Enter a Name and the Host / IP. Both are required, up to 253 characters, with no control characters, and the name must not be in use by another saved device. Leave a field and the form says what is wrong under it, for example Name is required. An address that looks like IPv4 but is not a valid one gets Warning: This looks like an IPv4 address, but it is not a valid one. You can still save it.
- Choose the Type, Network device or Server, then the Vendor / OS. A network device offers Cisco IOS (the default), Cisco IOS XE, Cisco NX-OS, Arista EOS, Juniper Junos, Palo Alto PAN-OS, Fortinet FortiOS, MikroTik RouterOS, Cisco FTD, Cisco ASA, Cisco Meraki and Other / unknown; a server offers Linux, Windows, macOS and Other / unknown. What the app can do on each is in Supported devices.
- Check the port. Its label follows the Vendor / OS: Port (SSH) at 22, Port (RDP) at 3389 for Windows, Port (Cloud API) at 443 for Cisco Meraki. Changing the Vendor / OS moves the port to the new default only while it still shows the old default; a port you typed stays.
- Choose a Folder, or leave No folder. New folder asks for a name; write
Branch 12/Coreto nest one folder inside another. - Choose the Credential. New credential opens the credential form from here (section 2), and the saved credential is selected when you come back. A device saved with No credential cannot open a session: the pane reports Connection failed: with the reason that the device has no credential (the app's words are device has no auth profile).
- Two settings sit below. Allow older SSH algorithms, shown for SSH devices only, with the hint For older devices. Never turns on the none cipher or DSA keys. Leave it off; when a device offers only older algorithms the app asks on connect instead, and Connect anyway records the choice here (see Terminal basics). Keep a config backup is on by default for the device types that have it and is explained in section 6.
- Select Add device. The form closes and the device appears in Inventory, in its folder.
Add device stays disabled while Name or Host / IP is still wrong, and its tooltip then reads Enter a name first or Enter a host or IP first. When the app refuses the save, the form shows Not saved. followed by the reason, for example that a device with that name already exists.

Three other ways in. A Windows server is quickest from Quick connect, RDP, Add Windows device, which opens this form preset for Windows; give it a password credential, because a key or agent credential cannot sign in to a remote desktop, and the desktop opens as soon as you save (Terminal basics). Meraki networks come in as a cloud account from the same plus button, Add cloud account… (Meraki in 5 minutes); a Meraki site can also be saved by hand here with Cisco Meraki as the Vendor / OS, which replaces the address with the read-only Dashboard API host and asks for the Organization ID and Network ID. A finished discovery adds the devices you select from its results with the Add to Inventory (N) button, N counting your selection, after you choose a folder for them (Discover your network and draw the maps).
2. Create a credential#
- Select Credentials in the left rail, then the plus button at the top of the pane (tooltip New credential). Right-clicking the pane offers New credential… too. The Add device form's New credential button and the + New credential… entry in the Start discovery dialog's credential list open the same form and come back to where you were. The New credential form opens.
- Enter a Credential name. The hint reads A local label for this credential. It is never sent to a device. Use a name no other credential has: saving a new credential under an existing name replaces that credential, for every device that uses it, and the form does not warn you.
- Enter the Username. It is required for every method, the SSH agent included.
- Choose the Authentication method:
- Password. Enter the Password. The hint reads Stored in Windows Credential Manager, never in app settings or logs. The app reads it only to use it, such as when it connects to the device.
- Private key file. Enter the Private key file path, for example
C:\Users\you\.ssh\id_ed25519, and the Passphrase (optional) when the key has one. The key path is stored; any passphrase goes to Windows Credential Manager. The key file itself stays where it is, so keep it readable by your Windows user and by no one else. - SSH agent. Do not use this method in this version. The form offers it, with Key fingerprint (optional) and the hint Uses a running SSH agent via SSH_AUTH_SOCK. Note: the Windows named-pipe agent isn't supported yet. Use a key file there., but the app's SSH client has no agent support at all: a connection with an agent credential stops before it signs in, with an error saying SSH agent auth needs SSH_AUTH_SOCK and to use a key file or password for now. Use Private key file instead.
- Enable password (optional). Some devices sign you in at a limited prompt and ask for a second password to reach full access. Enter it here and the app answers that prompt when it connects to a saved device that uses this credential; it is stored in Windows Credential Manager and sent only as the answer to that prompt. The form says so under the field, and adds Quick Connect does not use it. An enable password must be at least 4 characters: the app removes the value from saved output and from what Lina reads by finding it in the text, and a shorter value appears too often in ordinary output to remove safely. The form says this when you type fewer.
- Select Save credential. It is enabled once the name, the username and the method's own field are filled: the password, or the key file path; the SSH agent needs nothing more. The form closes. The Credentials pane, or the form you came from, shows Credential "Network admin" saved., and when a password or key passphrase was stored it adds The secret is in Windows Credential Manager.
A credential row shows its name and username. Hover for how it is stored: Stored in Windows Credential Manager for a password, Stored in SSH key file or Stored in SSH agent for the others. Credentials have folders of their own, with the same drag and right-click actions as devices (drag a row onto a folder; right-click for New folder…, New sub-folder…, Rename "name"… and Delete folder…), and Filter credentials… matches the name or the folder. A Meraki API key saved while adding a cloud account is listed here too; it is the key the account signs in with, and Meraki in 5 minutes covers rotating and removing it.

3. Edit, rename or delete a credential#
Hover over the credential and select the pencil; its tooltip is Edit followed by the credential's name. The form is titled Edit credential and opens on the method the credential really has.
- Rename it. Change the Credential name and select Save changes. No secret is needed. The stored secrets move with the name, and every device that used the old name follows. If the form reports Partly saved. instead, the name changed but the devices did not follow: open the credential and assign it to them again. A name another credential already has is refused.
- Rotate the password. Enter it under New password (rotates the secret). The new one replaces the stored one.
- Change the username, the method, the key path or the key fingerprint. On a password credential, or a key file credential whose passphrase is stored, these need the secret again: the form asks Re-enter the password to change the username on this credential., Enter the password to save these changes., or the same for the key file passphrase, and Save changes waits until you do. A key file without a passphrase and an agent credential save such a change without one. Leaving the password or passphrase box empty on any other edit keeps what is stored.
- Replace or remove the enable password. Type a new one over the placeholder stored. Type to replace it, or select Remove the stored enable password. An empty box keeps the stored one.
- Delete it. Hover over the row and select the ×; its tooltip is Delete followed by the name. There is no confirmation: the credential is removed at once, and the app then deletes its stored secrets from Windows Credential Manager (an entry it cannot delete stays there unused). A device that still names it cannot connect until you give it another credential (Edit device…, or Set credential for all… on its folder); its pane reports Connection failed: with the app's words auth profile not found. A Meraki API key that a cloud account uses is not deleted, and the app shows nothing when you try; remove the account first (Meraki in 5 minutes).
Saving a credential does not test it. If a device rejects the login, connect once from its terminal to read the device's own answer, then check the Username and the method here. When the device password changed, rotate it as above; the next connection uses the new one.
4. Folders#
Inventory shows real folders first, sorted by name with numbers in natural order, and the devices without a folder last under Ungrouped; that heading appears only when there is something else to tell it apart from. Select a folder's name to collapse or expand it. Filter inventory… matches a device's name, address, folder or device type tag (cisco_ios_xe, for example) and shows the matching branches expanded.
- Make a folder. Right-click empty space in the pane and select New group…, or right-click a folder and select New sub-folder…. The plus button's menu has New group… too. An empty folder stays visible and reads Empty. Drag a device here.
- Move a device. Drag it onto a folder. The drop changes only the device's folder.
- Rename a folder. Right-click it and select Rename…. The prompt shows the full path, such as
Branch 12/Core; edit any part of it, and the folder, its sub-folders and every device in them follow. Renaming onto a folder that already exists merges the two. - Delete a folder. Right-click it and select Delete folder…. The app asks first, counts the devices in it and its sub-folders, and says they move to Ungrouped and are not deleted.
- Act on a whole folder. Connect to all in "name"… opens one tab per device, asking first when there are more than ten (Open many terminals, Open all). Set credential for all… offers your saved credentials under Set credential and assigns the one you pick to every device in the folder and its sub-folders, which is how a freshly imported list gets its credential (section 7).
5. Edit, duplicate or delete a device#
Right-click the device. Its menu holds the ways to open it (Open terminal (SSH) and Open SFTP… for an SSH device, Open RDP… for a Windows device saved on port 3389 with a password credential, Open site report for a Meraki site), Config history… on an SSH device, then Edit device…, Duplicate device…, Forget saved SSH key… when a key is saved, and Delete device…. For a Meraki site those three read Edit site…, Duplicate site… and Delete site…, and its delete question says that nothing in Meraki changes. Hovering over the row shows a pencil and an × that do the same as the edit and delete entries.
Edit device… opens the form as Edit device with Save changes. Renaming keeps the device's saved host key, because the key is tied to the saved device, not to its name. Changing the Host / IP or the port clears the saved SSH and RDP keys, so the next connection is a first contact and asks you to confirm the fingerprint again; the app treats a new address as a different device. Changing the Vendor / OS to one without a configuration backup turns Keep a config backup off. Nothing in the form reaches the device. Saving an edit, including a move to another folder or a new credential, and deleting the device both withdraw any change on it that is still waiting for your approval, and Lina stops using connections to it that were opened before the change.
Duplicate device… opens Duplicate device with the name followed by (1) and the address, port, device type, folder and credential copied; Allow older SSH algorithms starts off. Create duplicate saves the new device and leaves the original alone.
Delete device… asks Remove "ACC-SW1" from this app's inventory? Nothing on the device itself changes, and its saved credentials stay in Credentials. When the device has a saved SSH key the question adds Deleting this device also forgets its saved SSH key. Connect again to review the new fingerprint. Select Delete. The inventory record and the saved keys go; the credential stays under Credentials, and the device's backups stay under Config & Compliance in the left rail, Backups tab, with the older backups (Backups and drift).
Forget saved SSH key… removes the fingerprint the app trusts for this device, after you type the device name to confirm, so that the next connection shows the new key for you to check. Use it after you have confirmed a key change out of band; Check an SSH host key explains when.
6. Keep a config backup#
Keep a config backup is on by default when you add a device of these types: Cisco ASA, Cisco IOS, Cisco IOS XE, Cisco NX-OS, Arista EOS, Juniper Junos, Palo Alto PAN-OS and Fortinet FortiOS. The Edit device form shows the saved setting, which is off for an imported device until you turn it on. For a server, a Meraki site or another device type the box is disabled and says why: Not available for servers., Not available for cloud-managed sites. or Not available for this vendor or OS. The hint under it reads Backs up the configuration at first connect, so the AI starts troubleshooting with the device's config in hand.
With it on, after your first successful connection to the device the app signs in once more in the background with the same credential and saves the running configuration, and the startup configuration where the device type has one. Your pane prints a yellow line such as Saved a configuration baseline for ACC-SW1 (one extra background login). On later connections it reads the running configuration again and saves a new copy only when it has changed. The line then reads Checked the configuration baseline for ACC-SW1 (one extra background login). when nothing changed, and Saved a configuration baseline for ACC-SW1 again when a new copy was stored, with the number of background logins it took in parentheses; reading the startup configuration as well takes a second one. The copies appear under Config & Compliance in the left rail, Backups tab, as connect backup · running and connect backup · startup, stored complete and encrypted (Backups and drift). Except on Arista EOS, when the device drops you at a limited prompt and the credential has no enable password, the app skips the backup for that connection; add the enable password to the credential.
When the background backup could not be saved, the app tries again after your next connection. To see which devices are still waiting for their first copy, turn on Show a notice in the device list when a device's first automatic backup hasn't completed yet under Settings > Backups (it is off by default): a device whose backup failed and that has no saved copy yet then carries a No backup badge whose tooltip reads No config backup for this device yet. The app retries an automatic backup after the next connect.
7. Import a device list#
The upload button at the top of the Inventory pane (tooltip Import devices from CSV, ssh_config, or SecureCRT) opens Import devices. Under Source format choose CSV, OpenSSH ssh_config, SecureCRT SCRTConfig.xml, SecureCRT Sessions folder (.ini), PuTTY sessions (.reg export) or OpenSSH known_hosts, then pick the File (or the Sessions folder for SecureCRT .ini files). For PuTTY, Import from PuTTY on this machine reads the sessions straight from this PC's registry instead. A CSV, ssh_config, SecureCRT or known_hosts file must be UTF-8 without a byte-order mark; a registry export is read as regedit writes it, UTF-16 with its byte-order mark, or as UTF-8. Every file is limited to 8 MiB.
CSV. The only required column is host (or hostname). Optional: name (the host when missing), port (22 when missing), vendor, group (the folder, nested with /). Headers are case-insensitive. The vendor column takes the app's tags: cisco_ios, cisco_ios_xe, nxos, arista_eos, junos, pan_os, fortios, routeros, ftd, cisco_asa, linux, windows, macos; a missing vendor becomes Other / unknown, and any other value is kept as a lowercase tag of its own, so edit those devices afterwards. The dialog's hint also names a username column; the app reads it but does not use it in this version, because an imported device gets no credential. Download template offers to save a file named ainetshell-devices-template.csv to start from. The other sources give each device its name, address and port, and a folder where the source has one, with Other / unknown as the device type. An ssh_config import takes each Host block that names a real host; wildcard blocks such as Host * and Include files are skipped without a note, and the SecureCRT sources take SSH2 sessions only, also without a note. PuTTY sessions that are not SSH, and known_hosts lines that hide or do not name an address, are skipped too, and for those two sources the dialog says how many and why. Host keys in a known_hosts file are read for information only: nothing is trusted until you confirm it on the first connect.
The review table lists each device with its Name, Host, Port, Vendor and Group and a checkbox. A row whose name is already in your inventory is marked exists, starts unchecked and never overwrites the saved device. Two new rows with the same name get the next free number, name and name (2). The preview stops with an error when a row has no host or its port is not a number; check the rest of the table yourself, because the app saves what it shows. Select Import N selected; the dialog reports Imported N device(s). Imported Linux, Windows and macOS hosts are saved as servers.
An imported device has No credential, Keep a config backup off and Allow older SSH algorithms off. Put the list in a folder, right-click the folder and use Set credential for all…; then turn the backup on per device with Edit device… where you want it.
Next#
- Terminal basics: open the session, check the host key, Quick connect and remote desktop.
- Discover your network and draw the maps: the credential list a discovery tries, and adding what it finds.
- Meraki in 5 minutes: cloud accounts and API keys.
- Backups and drift: what the connect backups hold and how to compare them.
- Check an SSH host key: when to forget a saved key.
Checked on AI NetShell 0.4.20