mirror of
https://github.com/Noratrieb/cluelessh.git
synced 2026-01-14 16:35:06 +01:00
changes
This commit is contained in:
parent
5f203d0f5b
commit
dcba4931e5
23 changed files with 317 additions and 132 deletions
|
|
@ -3,10 +3,8 @@
|
|||
use std::io;
|
||||
|
||||
use cluelessh_keys::{
|
||||
authorized_keys::{self, AuthorizedKeys},
|
||||
PublicKeyWithComment,
|
||||
authorized_keys::{self, AuthorizedKeys}, public::PublicKey, PublicKeyWithComment
|
||||
};
|
||||
use cluelessh_transport::key::PublicKey;
|
||||
use users::os::unix::UserExt;
|
||||
|
||||
/// A known-authorized public key for a user.
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ mod pty;
|
|||
use std::{io, net::SocketAddr, process::ExitStatus, sync::Arc};
|
||||
|
||||
use auth::AuthError;
|
||||
use cluelessh_keys::public::PublicKey;
|
||||
use cluelessh_tokio::{server::ServerAuthVerify, Channel};
|
||||
use cluelessh_transport::key::PublicKey;
|
||||
use eyre::{bail, eyre, Context, OptionExt, Result};
|
||||
use pty::Pty;
|
||||
use rustix::termios::Winsize;
|
||||
|
|
@ -109,7 +109,9 @@ async fn main() -> eyre::Result<()> {
|
|||
auth_banner: Some("welcome to my server!!!\r\ni hope you enjoy your stay.\r\n".to_owned()),
|
||||
};
|
||||
|
||||
let mut listener = cluelessh_tokio::server::ServerListener::new(listener, auth_verify);
|
||||
let config = todo!();
|
||||
|
||||
let mut listener = cluelessh_tokio::server::ServerListener::new(listener, auth_verify, config);
|
||||
|
||||
loop {
|
||||
let next = listener.accept().await?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue