Skip to content

Commit 6aaba99

Browse files
authored
fix proxy command (#47)
1 parent 8c831cf commit 6aaba99

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

coman/src/cscs/handlers.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ pub async fn cscs_job_list(system: Option<String>, platform: Option<ComputePlatf
9898
let api_client = CscsApi::new(access_token.0, platform).unwrap();
9999
let config = Config::new().unwrap();
100100
api_client
101-
.list_jobs(&system.unwrap_or(config.values.cscs.current_system), Some(true))
101+
.list_jobs(&system.unwrap_or(config.values.cscs.current_system), None)
102102
.await
103103
}
104104
Err(e) => Err(e),
@@ -188,7 +188,7 @@ async fn setup_ssh(
188188
// try to figure our ssh key
189189
let ssh_dir = dirs::home_dir().ok_or(eyre!("couldn't find home dir"))?.join(".ssh");
190190
let mut ssh_path = None;
191-
for file in ["id_dsa.pub", "id_ecdsa.pub", "id_rsa.pub"] {
191+
for file in ["id_dsa.pub", "id_ecdsa.pub", "id_rsa.pub", "id_ed25519.pub"] {
192192
let path = ssh_dir.join(file);
193193
if path.exists() {
194194
ssh_path = Some(path);
@@ -293,7 +293,7 @@ async fn store_ssh_information(
293293
let mut writer = BufWriter::new(coman_ssh_config);
294294
write!(
295295
writer,
296-
"\n#Start {0}\nHost {0}\n Hostname {1}\n User {2}\n ProxyCommand coman proxy {3}{4}\n#End {0}",
296+
"\n#Start {0}\nHost {0}\n Hostname {1}\n User {2}\n ProxyCommand coman proxy {3} {4}\n#End {0}",
297297
connection_name,
298298
secret_key.public(),
299299
user_info.name,

0 commit comments

Comments
 (0)