~sircmpwn/hare-ssh

ref: 46f9feeeb1c5606e7ef1e9ac1e22fb4767e4da2f hare-ssh/cmd/ssh/main.ha -rw-r--r-- 279 bytes
46f9feeeDrew DeVault net::ssh: add some mac algorithms 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
use fmt;
use net::dial;
use net::ssh;
use os;

export fn main() void = {
	const conn = dial::dial("tcp", os::args[1], "ssh")!;
	const client = ssh::newclient(conn)!;
	defer ssh::client_finish(&client);

	const version = ssh::client_verexch(&client)!;
	fmt::println(version)!;
};