Giter Site home page Giter Site logo

xanxushu / xanssh Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 872 KB

一个SSH和SFTP客户端。基于flutter,SSH、SFTP实现:dartssh2。

License: Apache License 2.0

Kotlin 0.10% Ruby 2.27% Swift 1.77% Objective-C 0.03% Dart 57.96% CMake 15.81% C++ 19.42% C 1.16% HTML 1.49%
dart flutte flutter-app ssh-client

xanssh's Introduction

xanssh(移动端和macOS),win和Linux请查看windows分支

简介

本项目基于flutter构建,主要用于解决日常的 SSH、SFTP等需求,因为在macOS上没找到好用开源的工具,姑且就自己写了一个,因为正在使用flutter做毕设,也就顺便做成了一个跨平台的SSH客户端。

构建

  • flutter stable version 最好是3.16.x版本及以上,但最好还是3.16.x版本,低版本和高版本都会有引用第三方库的兼容问题
  • dartssh SSH、SFTP功能库,这是功能实现的 核心
  • CupertinoUI 因为没有精力写那么多套UI所以全部平台统一使用Cupertino风格的界面,感觉还蛮顺眼的

功能

  • 实现SSH连接远程服务器
    • 目前仅支持username+password登录
    • 使用sqlite对连接数据进行本地存储、包括密码、所以理论上存在风险
    • 没有用户系统、没有存储服务器、所有信息均在本地保留记录、所以不存在多端同步
  • 实现SFTP在服务器之间传输文件
    • 目前仅支持文件、文件夹暂不支持、但是有计划
    • 该界面不稳定、目前正在测试
  • 实现一些额外的设置功能
    • 虽然不能同步但是可以将记录导出和导入
    • 这个是加密的所以不用担心
    • 密钥具有一次性

站在巨人的肩膀上

一个不那么成功的样品

  • 全平台使用Cupertino风格除了便利一点外还会带来除Apple设备外的不适配
  • 一些组件的构建方式并不是最优解,因为还没学会Provider
  • 移动端的开始按钮仍有一些问题,好在没什么人会在移动端进行大量的SSH、SFTP操作;事实上SFTP没有什么问题,主要是SSH和终端构建的连接中出了些问题

clone注意事项:

  • 确保设备的flutter环境 flutter doctor -v,如果没有的话请下载
  • 建议使用Visual Studio Code 、Android Studio、IntelliJ IDEA 下载flutter拓展即可对语法、调试等进行操作
  • clone本项目
  • 在项目目录下运行flutter pub get获取调用库
  • xterm、sqflite等库和flutter版本有着相当密切的关系建议使用时查看对照表
  • 使用flutter run -v或编译器的调试来运行项目

xanssh's People

Contributors

xanxushu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.