Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jpx40 committed Feb 25, 2024
1 parent a3544f5 commit 0490b37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions central/rsrem/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ fn main() {

let connection = Connection::new(host.to_string(), port);
let user = User::new("jonas".to_string(), "Artemis34!!".to_string());
let mut local_session = ssh_connect(user, connection);
let notbook_user = User::new("jonas".to_string(), "artemisJP!!".to_string());
let notbook_connection = Connection::new("192.168.178.46".to_string(), port);
ssh_connect(user, connection);

let mut session = ssh_connect(notbook_user, notbook_connection);
let path = Path::new("test.txt");
Expand All @@ -158,7 +158,7 @@ fn main() {
//let buf = reader.fill_buf().unwrap();
let times: Option<(u64, u64)> = None;

let os = check_os_type(&mut session);
let os = check_os_type(&mut local_session);
println!("{}", os);
// let remote_file = RemoteFile::new(path.to_str().unwrap().to_string());
// // file_upload(&mut session, path, size, &buffer, times);
Expand Down

0 comments on commit 0490b37

Please sign in to comment.