I changed the settings. It connects to the remote HPC, but fails at creating file test
* Creating and deleting temporary file... [Failed]: OSError: Error during mkdir of '/home/yang', maybe you don't have the permissions to do it, or the directory already exists? ([Errno 13] Permission denied)
It is making /home/yang
at my local computer or remote HPC? Can I change the directory?
Here are the records
(aiida_QE) yang@yang-Inspiron-3670:~/AiiDA$ verdi -p quicksetup computer configure core.ssh a0s000508
Report: enter ? for help.
Report: enter ! to ignore the default and set no value.
User name [yang]: a0s000508@BSCC-A
Port number [22]:
Look for keys [Y/n]:
SSH key file []: /home/yang/.ssh/id_ed25519.pub
Connection timeout in s [60]:
Allow ssh agent [Y/n]:
SSH proxy jump []:
SSH proxy command []:
Compress file transfers [Y/n]:
GSS auth [False]:
GSS kex [False]:
GSS deleg_creds [False]:
GSS host [ssh.cn-zhongwei-1.paracloud.com]:
Load system host keys [Y/n]:
Key policy (RejectPolicy, WarningPolicy, AutoAddPolicy) [RejectPolicy]: WarningPolicy
Use login shell when executing command [Y/n]:
Connection cooldown time (s) [30.0]:
Report: Configuring computer a0s000508 for user ygy11123@sina.com.
Success: a0s000508 successfully configured for ygy11123@sina.com
(aiida_QE) yang@yang-Inspiron-3670:~/AiiDA$ verdi computer test a0s000508 --print-traceback
Report: Testing computer<a0s000508> for user<ygy11123@sina.com>...
* Opening connection... [OK]
* Checking for spurious output... [OK]
* Getting number of jobs from scheduler... [OK]: 0 jobs found in the queue
* Determining remote user name... [OK]: a0s000508
* Creating and deleting temporary file... [Failed]: OSError: Error during mkdir of '/home/yang', maybe you don't have the permissions to do it, or the directory already exists? ([Errno 13] Permission denied)
Full traceback:
Traceback (most recent call last):
File "/home/yang/miniforge3/envs/aiida_QE/lib/python3.11/site-packages/aiida/cmdline/commands/cmd_computer.py", line 128, in _computer_create_temp_file
transport.chdir(workdir)
File "/home/yang/miniforge3/envs/aiida_QE/lib/python3.11/site-packages/aiida/transports/plugins/ssh.py", line 619, in chdir
self.sftp.chdir(path)
File "/home/yang/miniforge3/envs/aiida_QE/lib/python3.11/site-packages/paramiko/sftp_client.py", line 659, in chdir
if not stat.S_ISDIR(self.stat(path).st_mode):
^^^^^^^^^^^^^^^
File "/home/yang/miniforge3/envs/aiida_QE/lib/python3.11/site-packages/paramiko/sftp_client.py", line 493, in stat
t, msg = self._request(CMD_STAT, path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/yang/miniforge3/envs/aiida_QE/lib/python3.11/site-packages/paramiko/sftp_client.py", line 822, in _request
return self._read_response(num)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/yang/miniforge3/envs/aiida_QE/lib/python3.11/site-packages/paramiko/sftp_client.py", line 874, in _read_response
self._convert_status(msg)
File "/home/yang/miniforge3/envs/aiida_QE/lib/python3.11/site-packages/paramiko/sftp_client.py", line 903, in _convert_status
raise IOError(errno.ENOENT, text)
FileNotFoundError: [Errno 2] No such file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/yang/miniforge3/envs/aiida_QE/lib/python3.11/site-packages/aiida/transports/plugins/ssh.py", line 737, in mkdir
self.sftp.mkdir(path)
File "/home/yang/miniforge3/envs/aiida_QE/lib/python3.11/site-packages/paramiko/sftp_client.py", line 460, in mkdir
self._request(CMD_MKDIR, path, attr)
File "/home/yang/miniforge3/envs/aiida_QE/lib/python3.11/site-packages/paramiko/sftp_client.py", line 822, in _request
return self._read_response(num)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/yang/miniforge3/envs/aiida_QE/lib/python3.11/site-packages/paramiko/sftp_client.py", line 874, in _read_response
self._convert_status(msg)
File "/home/yang/miniforge3/envs/aiida_QE/lib/python3.11/site-packages/paramiko/sftp_client.py", line 905, in _convert_status
raise IOError(errno.EACCES, text)
PermissionError: [Errno 13] Permission denied
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/yang/miniforge3/envs/aiida_QE/lib/python3.11/site-packages/aiida/cmdline/commands/cmd_computer.py", line 558, in computer_test
success, message = test(
^^^^^
File "/home/yang/miniforge3/envs/aiida_QE/lib/python3.11/site-packages/aiida/cmdline/commands/cmd_computer.py", line 130, in _computer_create_temp_file
transport.makedirs(workdir)
File "/home/yang/miniforge3/envs/aiida_QE/lib/python3.11/site-packages/aiida/transports/plugins/ssh.py", line 721, in makedirs
self.mkdir(this_dir)
File "/home/yang/miniforge3/envs/aiida_QE/lib/python3.11/site-packages/aiida/transports/plugins/ssh.py", line 740, in mkdir
raise OSError(
OSError: Error during mkdir of '/home/yang', maybe you don't have the permissions to do it, or the directory already exists? ([Errno 13] Permission denied)
* Checking for possible delay from using login shell... [OK]
Warning: 1 out of 6 tests failed
(aiida_QE) yang@yang-Inspiron-3670:~/AiiDA$ verdi computer configure show
Usage: verdi computer configure show [OPTIONS] COMPUTER
Try 'verdi computer configure show --help' for help.
Error: Missing argument 'COMPUTER'.
(aiida_QE) yang@yang-Inspiron-3670:~/AiiDA$ verdi computer configure show a0s000508
* username a0s000508@BSCC-A
* port 22
* look_for_keys True
* key_filename /home/yang/.ssh/id_ed25519.pub
* timeout 60
* allow_agent True
* proxy_jump
* proxy_command
* compress True
* gss_auth False
* gss_kex False
* gss_deleg_creds False
* gss_host ssh.cn-zhongwei-1.paracloud.com
* load_system_host_keys True
* key_policy WarningPolicy
* use_login_shell True
* safe_interval 30.0
(aiida_QE) yang@yang-Inspiron-3670:~/AiiDA$ vi /home/yang/.ssh/id_ed25519.pub
Sincerely,
Dr. Guoyu Yang
Lecturer
Jimei Univ, School of Science, Digital Fujian Big Data Modeling and Intelligent Computing Institute
185 Yinjiang Rd.,
Jimei District, Xiamen,361021
Fujian, China
E-mail: 201961000100@jmu.edu.cn