mirror of
https://github.com/Noratrieb/cluelessh.git
synced 2026-01-16 01:15:04 +01:00
bootstrap SFTP subsystem
This commit is contained in:
parent
8de8204bc7
commit
a9e2edc572
15 changed files with 205 additions and 17 deletions
12
bin/cluelesshd-sftp-server/Cargo.toml
Normal file
12
bin/cluelesshd-sftp-server/Cargo.toml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
[package]
|
||||
name = "cluelesshd-sftp-server"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
eyre.workspace = true
|
||||
tracing.workspace = true
|
||||
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
3
bin/cluelesshd-sftp-server/README.md
Normal file
3
bin/cluelesshd-sftp-server/README.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# cluelesshd-sftp-server
|
||||
|
||||
SFTP server for cluelesshd.
|
||||
17
bin/cluelesshd-sftp-server/src/main.rs
Normal file
17
bin/cluelesshd-sftp-server/src/main.rs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
use eyre::Result;
|
||||
use tracing::info;
|
||||
use tracing_subscriber::EnvFilter;
|
||||
|
||||
fn main() -> Result<()> {
|
||||
let env_filter =
|
||||
EnvFilter::try_from_env("SFTP_LOG").unwrap_or_else(|_| EnvFilter::new("debug"));
|
||||
|
||||
tracing_subscriber::fmt()
|
||||
.with_writer(std::io::stderr)
|
||||
.with_env_filter(env_filter)
|
||||
.init();
|
||||
|
||||
info!("mroooow!");
|
||||
|
||||
Ok(())
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue