{"id":308,"date":"2024-01-26T16:09:42","date_gmt":"2024-01-26T15:09:42","guid":{"rendered":"http:\/\/musruser.psi.ch\/?page_id=308"},"modified":"2025-10-27T16:20:44","modified_gmt":"2025-10-27T14:20:44","slug":"access-psi-analysis-computers","status":"publish","type":"page","link":"https:\/\/musruser.psi.ch\/?page_id=308","title":{"rendered":"Access PSI analysis computers"},"content":{"rendered":"\n<p>In order to obtain access to analysis computers at PSI you need to request an <strong>external user account. <\/strong>Please ask your local contact to open an account for you if you do not have one yet.<\/p>\n\n\n\n<p>Once you have an account, please set up multi-factor authentication (MFA) by following the instructions <a href=\"https:\/\/www.psi.ch\/en\/computing\/mfa\" data-type=\"URL\" data-id=\"https:\/\/www.psi.ch\/en\/computing\/mfa\">here<\/a>. Now you are ready to log into <a href=\"https:\/\/nx.psi.ch\/\">nx.psi.ch<\/a> and open a session to one of the available machines. Remind your local contact to include you in the svc-cluster_smus users group before you connect.<\/p>\n\n\n\n<p>Alternatively, if you are an expert user you may want to configure your ssh connection to a local machine at PSI so you can perform the analysis of your muon spin spectroscopy data. The instructions here are for a standard Linux OS. If you have another OS, you should probably switch to Linux \ud83d\ude09<\/p>\n\n\n\n<p>1. Create a &#8220;<code>~\/.ssh<\/code>&#8221; and &#8220;<code>~\/.ssh\/tmp<\/code>&#8221; folders in your home directory if you do not have them already<br><code>mkdir ~\/.ssh<br>chmod 700 ~\/.ssh<br>mkdir ~\/.ssh\/tmp<\/code><\/p>\n\n\n\n<p>Add the following lines to the <code>.bashrc<\/code>&nbsp; file in your account,<br><code>export ROOTSYS=\/usr<br>export MUSRFITPATH=\/usr\/local\/bin<br>export DKS=\/usr\/local\/dks<\/code><\/p>\n\n\n\n<p>2. Create a file with the name <code>config<\/code> in the <code>~\/.ssh<\/code> folder. This file uses your specific login <code class=\"has-vivid-red-color has-text-color\">&lt;ext-lastname_n&gt;<\/code>, please change this accordingly. The content of the file should be as follows<\/p>\n\n\n<pre><code>ControlMaster auto\nControlPath ~\/.ssh\/tmp\/%h_%p_%r\nForwardX11 yes\nForwardX11Trusted yes\nForwardAgent yes<br \/><br \/>host hopx hopx.psi.ch<br \/> \u00a0\u00a0\u00a0 hostname hopx.psi.ch<br \/>\u00a0\u00a0\u00a0\u00a0 user <code class=\"has-vivid-red-color has-text-color\">&lt;ext-lastname_n&gt;<\/code><br \/><br \/>host mpc2845<br \/>\u00a0\u00a0\u00a0\u00a0 hostname mpc2845.psi.ch<br \/>\u00a0\u00a0\u00a0\u00a0 user <code class=\"has-vivid-red-color has-text-color\">&lt;ext-lastname_n&gt;<\/code><br \/>\u00a0 ProxyJump hopx<br \/>DynamicForward 8118<br \/><br \/>host mpc1940<br \/>\u00a0\u00a0\u00a0\u00a0 hostname mpc1940.psi.ch<br \/>\u00a0\u00a0\u00a0\u00a0 user <code class=\"has-vivid-red-color has-text-color\">&lt;ext-lastname_n&gt;<\/code><br \/>\u00a0 ProxyJump hopx<br \/><br \/>host mpc1941<br \/>\u00a0\u00a0\u00a0\u00a0 hostname mpc1941.psi.ch<br \/>\u00a0\u00a0\u00a0\u00a0 user <code class=\"has-vivid-red-color has-text-color\">&lt;ext-lastname_n&gt;<\/code><br \/>\u00a0 ProxyJump hopx<\/code><code><code><\/code><\/code><\/pre>\n\n\n<p>3. Only you should be able to read this file. Run the following command:<br><code>chmod 600 ~\/.ssh\/config<\/code><\/p>\n\n\n\n<p>4. Now you can simply ssh to <code>hopx<\/code> (without .psi.ch)):<br><code>ssh hopx<\/code><br>Following this<br>i) Provide the password for your <code><code class=\"has-vivid-red-color has-text-color\">&lt;ext-lastname_n&gt;<\/code><\/code> account.<br>ii) Confirm authentication via the MFA application on your mobile phone.<br>iii) keep this window open and open another terminal to ssh one of the analysis machines <code>mpc2845<\/code>, <code>mpc1940<\/code> and <code>mpc1941<\/code> (without .psi.ch):<br><code>ssh mpc1940<\/code><br>and provide the password for your <code><code class=\"has-vivid-red-color has-text-color\">&lt;ext-lastname_n&gt;<\/code><\/code> account again to access <code>mpc1940<\/code>.<\/p>\n\n\n\n<p>5. Open <code>musredit<\/code> or any other program.<\/p>\n\n\n\n<p>Note that you may add a configuration section for other hosts at PSI (or outside). Only hosts <strong>within PSI firewall <\/strong>should have the <code>ProxyJump<\/code> line. Also, you must use the <strong>correct username<\/strong> instead of <code><code><code class=\"has-vivid-red-color has-text-color\">&lt;ext-lastname_n&gt;<\/code><\/code><\/code> in the <code>user<\/code> line.<\/p>\n\n\n\n<p>Another useful feature, is to use this configuration to route your browser through ssh tunnel to access the data acquisition system on our beam lines.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In order to obtain access to analysis computers at PSI you need to request an external user account. Please ask your local contact to open an account for you if you do not have one yet. Once you have an account, please set up multi-factor authentication (MFA) by following the instructions here. Now you are &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/musruser.psi.ch\/?page_id=308\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Access PSI analysis computers&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/musruser.psi.ch\/index.php?rest_route=\/wp\/v2\/pages\/308"}],"collection":[{"href":"https:\/\/musruser.psi.ch\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/musruser.psi.ch\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/musruser.psi.ch\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/musruser.psi.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=308"}],"version-history":[{"count":6,"href":"https:\/\/musruser.psi.ch\/index.php?rest_route=\/wp\/v2\/pages\/308\/revisions"}],"predecessor-version":[{"id":470,"href":"https:\/\/musruser.psi.ch\/index.php?rest_route=\/wp\/v2\/pages\/308\/revisions\/470"}],"wp:attachment":[{"href":"https:\/\/musruser.psi.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}