diff --git a/src/main.rs b/src/main.rs index 476cdec..45d5006 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,18 +1,19 @@ use std::net::TcpStream; use ssh2::Session; -const EDI_IP: &str = "100.94.173.5"; +const USER: &str = "aaronh"; +const EDI: &str = "100.94.173.5:22"; fn main() { // Connect to the local SSH server - let tcp = TcpStream::connect("100.94.173.5:22").unwrap(); + let tcp = TcpStream::connect(EDI).unwrap(); let mut sess = Session::new().unwrap(); sess.set_tcp_stream(tcp); sess.handshake().unwrap(); // Try to authenticate with the first identity in the agent. - sess.userauth_agent("aaronh").unwrap(); + sess.userauth_agent(USER).unwrap(); // Make sure we succeeded assert!(sess.authenticated());