<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.usnan.org/index.php?action=history&amp;feed=atom&amp;title=SSH_troubleshooting</id>
	<title>SSH troubleshooting - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.usnan.org/index.php?action=history&amp;feed=atom&amp;title=SSH_troubleshooting"/>
	<link rel="alternate" type="text/html" href="https://wiki.usnan.org/index.php?title=SSH_troubleshooting&amp;action=history"/>
	<updated>2026-05-06T14:16:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.usnan.org/index.php?title=SSH_troubleshooting&amp;diff=143&amp;oldid=prev</id>
		<title>Gweatherby: Expand WinSCP section</title>
		<link rel="alternate" type="text/html" href="https://wiki.usnan.org/index.php?title=SSH_troubleshooting&amp;diff=143&amp;oldid=prev"/>
		<updated>2025-02-04T22:19:28Z</updated>

		<summary type="html">&lt;p&gt;Expand WinSCP section&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:19, 4 February 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l70&quot;&gt;Line 70:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 70:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== How do I use a private key with [https://winscp.net WinSCP]? ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== How do I use a private key with [https://winscp.net WinSCP]? ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;See &lt;/del&gt;[https://winscp.net/eng/docs/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ui_login_authentication &lt;/del&gt;The &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Authentication Page&lt;/del&gt;].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Note that NMRhub allows multiple keys to be uploaded to the dashboard. On Windows, &lt;/ins&gt;[https://winscp.net/eng/docs/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ui_puttygen PuTTYgen] can be used to generate an additional key. &lt;/ins&gt;The &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;PuTTYgen window provides the public key to add to the [https://nmrbox.nmrhub.org/user-dashboard/ssh-key NMRhub dashboard&lt;/ins&gt;].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== How do I &amp;lt;code&amp;gt;scp&amp;lt;/code&amp;gt; from a shared account? ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== How do I &amp;lt;code&amp;gt;scp&amp;lt;/code&amp;gt; from a shared account? ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key nanwiki:diff:1.41:old-142:rev-143:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Gweatherby</name></author>
	</entry>
	<entry>
		<id>https://wiki.usnan.org/index.php?title=SSH_troubleshooting&amp;diff=142&amp;oldid=prev</id>
		<title>Gweatherby: Create from https://github.com/NMRhub/NMRhub_SSH_Troubleshooting/</title>
		<link rel="alternate" type="text/html" href="https://wiki.usnan.org/index.php?title=SSH_troubleshooting&amp;diff=142&amp;oldid=prev"/>
		<updated>2025-02-04T21:50:11Z</updated>

		<summary type="html">&lt;p&gt;Create from https://github.com/NMRhub/NMRhub_SSH_Troubleshooting/&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== SSH Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
[https://nmrhub.org NMRhub] now requires an SSH key pair to connect. Use [https://openssh.com SSH / SFTP / rsync] and tools like [https://filezilla-project.org FileZilla] to connect to NMRhub virtual machines (VMs).&lt;br /&gt;
&lt;br /&gt;
=== Where is my private key? ===&lt;br /&gt;
&lt;br /&gt;
After following the instructions at [https://nmrbox.nmrhub.org/user-dashboard/ssh-key NMRbox User Dashboard SSH Key Setup], your private key should be at:&lt;br /&gt;
* On Mac/Linux: &amp;lt;code&amp;gt;$HOME/.ssh/id_ed25519&amp;lt;/code&amp;gt;&lt;br /&gt;
* On Windows: &amp;lt;code&amp;gt;%HOMEDRIVE%%HOMEPATH%\.ssh\id_ed25519&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== I have the private key in place, but I can&amp;#039;t connect. ===&lt;br /&gt;
&lt;br /&gt;
# Try connecting to more than one VM to make sure it&amp;#039;s not just an issue with that specific VM. (Please let us know if you can SSH to one VM but not another via [mailto:support@nmrbox.org support@nmrbox.org].)&lt;br /&gt;
# Use &amp;lt;code&amp;gt;ssh -vvv&amp;lt;/code&amp;gt; to verify if SSH is attempting to use your private key.&lt;br /&gt;
&lt;br /&gt;
==== It&amp;#039;s trying to use the key, but it still doesn&amp;#039;t work. ====&lt;br /&gt;
&lt;br /&gt;
If you can&amp;#039;t connect after uploading your SSH key, verify the following commands give the same result. Windows users should run these commands from PowerShell:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
ssh-keygen -lf $HOME/.ssh/id_ed25519&lt;br /&gt;
ssh-keygen -lf $HOME/.ssh/id_ed25519.pub&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ensure the key listed at [https://nmrbox.nmrhub.org/user-dashboard/ssh-key NMRbox User Dashboard SSH Key] matches your &amp;lt;code&amp;gt;$HOME/.ssh/id_ed25519.pub&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:sample.jpeg|thumb|Date key set]]&lt;br /&gt;
&lt;br /&gt;
=== Home Directory Permissions ===&lt;br /&gt;
&lt;br /&gt;
If your home directory is writable by anyone other than you, SSH will not work. Connect via [https://nmrbox.nmrhub.org/pages/getting-started VNC] and run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
ls -l ~&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;w&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; appears after the first group of permissions (e.g., &amp;lt;code&amp;gt;drwx&amp;lt;/code&amp;gt;), use the following command to correct it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
chmod go-w ~&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== How do I use a private key with &amp;lt;code&amp;gt;rsync&amp;lt;/code&amp;gt;? ===&lt;br /&gt;
&lt;br /&gt;
Add the following option to your &amp;lt;code&amp;gt;rsync&amp;lt;/code&amp;gt; command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
-e &amp;quot;ssh -i /path/to/your/private_key&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== How do I use a private key with &amp;lt;code&amp;gt;sftp&amp;lt;/code&amp;gt;? ===&lt;br /&gt;
&lt;br /&gt;
Add the following option to your &amp;lt;code&amp;gt;sftp&amp;lt;/code&amp;gt; command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
-i /path/to/your/private_key&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== How do I use a private key with FileZilla? ===&lt;br /&gt;
&lt;br /&gt;
Go to FileZilla&amp;#039;s &amp;#039;&amp;#039;&amp;#039;Site Manager&amp;#039;&amp;#039;&amp;#039; and make the following settings in the &amp;#039;&amp;#039;&amp;#039;General&amp;#039;&amp;#039;&amp;#039; tab. You can leave the port blank, as it defaults to the correct value (22).&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Protocol:&amp;#039;&amp;#039;&amp;#039; SFTP - SSH File Transfer Protocol&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Host:&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;element&amp;#039;&amp;#039;.nmrbox.org&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Port:&amp;#039;&amp;#039;&amp;#039; Leave blank&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Logon Type:&amp;#039;&amp;#039;&amp;#039; Key file&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;User:&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;username&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Key file:&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;local path&amp;#039;&amp;#039;/.ssh/id_ed25519&lt;br /&gt;
&lt;br /&gt;
=== How do I use a private key with [https://winscp.net WinSCP]? ===&lt;br /&gt;
&lt;br /&gt;
See [https://winscp.net/eng/docs/ui_login_authentication The Authentication Page].&lt;br /&gt;
&lt;br /&gt;
=== How do I &amp;lt;code&amp;gt;scp&amp;lt;/code&amp;gt; from a shared account? ===&lt;br /&gt;
&lt;br /&gt;
(Note: This is not an endorsement of shared accounts, but that is a site-specific decision.)&lt;br /&gt;
&lt;br /&gt;
If multiple users are using a shared account (e.g., from a spectrometer console), the following steps will allow copying local data to each user&amp;#039;s account. For this example, we assume your username is &amp;lt;code&amp;gt;rernst&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Create another SSH key pair with a passphrase:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
ssh-keygen -t ed25519 -C &amp;quot;spectrometer scp&amp;quot;&lt;br /&gt;
Generating public/private ed25519 key pair.&lt;br /&gt;
Enter file in which to save the key (/Users/rernst/.ssh/id_ed25519): id_ed25519rernst&lt;br /&gt;
Enter passphrase (empty for no passphrase):  &amp;lt;type a password&amp;gt;&lt;br /&gt;
Enter same passphrase again: &amp;lt;retype the password&amp;gt;&lt;br /&gt;
Your identification has been saved in id_ed25519rernst&lt;br /&gt;
Your public key has been saved in id_ed25519rernst.pub&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Add&amp;#039;&amp;#039;&amp;#039; the contents of &amp;lt;code&amp;gt;id_ed25519rernst.pub&amp;lt;/code&amp;gt; to [https://nmrbox.nmrhub.org/user-dashboard/ssh-key NMRbox User Dashboard SSH Key].&lt;br /&gt;
&lt;br /&gt;
# Go to the home directory of the shared account. Create an &amp;lt;code&amp;gt;.ssh&amp;lt;/code&amp;gt; directory if necessary and ensure it has permissions &amp;lt;code&amp;gt;drwx------&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd $HOME&lt;br /&gt;
mkdir -p .ssh&lt;br /&gt;
chmod 700 .ssh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Create or edit &amp;lt;code&amp;gt;~/.ssh/config&amp;lt;/code&amp;gt; and add the following lines:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
Match User rernst Host *.nmrbox.org&lt;br /&gt;
    IdentityFile ~/.ssh/id_ed25519rernst&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# You should now be able to copy data from the shared account to &amp;lt;code&amp;gt;nmrbox.org&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
scp fid rernst@*element*.nmrbox.org:&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When prompted:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
Enter passphrase for key &amp;#039;home_directory/.ssh/id_ed25519rernst&amp;#039;:&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter the password you used when creating the key pair.&lt;/div&gt;</summary>
		<author><name>Gweatherby</name></author>
	</entry>
</feed>