Win7安转ssh(openssh和mobassh)
2017-01-13 10:25
113 查看
OpenSSH的安装配置:
下载地址:http://sourceforge.net/projects/sshwindows/files/OpenSSH for Windows - Release/3.8p1-1 20040709 Build/setupssh381-20040709.zip/download
1. 默认安装
2. 补上cygintl-2.dll和cygwin1.dll
下载:http://samanthahalfon.net/resources/cygwin_includes.zip(这个网站打不开,之后换个地方试一试好了)
将它们复制到c:\Program Files (x86)\OpenSSH\bin目录下,如果提示覆盖,则覆盖之,不然进行下面操作,会提示
不能启动opensshd服务
OpenSSH Error 1067:The process terminated unexpectedly 系统出错,进程意外终止
3. 开始安装
cd "c:\Program Files (x86)\OpenSSH\bin"
mkgroup -l >> ..\etc\group 生成一个group
mkpasswd -l [-u <username>] >> ..\etc\passwd
比如:
mkpasswd -l -u mxio >> ..\etc\passwd 这样就生成用户名mxio的passwd文件,
它调用的是系统用户名和密码
cd ..\..\etc 给权限
..\bin\chown mxio *
..\bin\chmod 600 *
4. 启动opensshd服务 不出问题会提示启动成功
net start opensshd
5. 测试连接
ssh mxio@localhost
因为无法打开上面那个网站下载补丁,因此安装了mobassh
MobaSSH:
下载地址:http://mobassh.mobatek.net/download-home-edition.html默认安装
测试本机连通性:
安装好之后打开客户端,在setting里勾选Enable Cron Service并重启
安装好一个ssh客户端,如putty或者SSH secure shell都可以,设置host name为127.0.0.1,user name为当前客户机登录用户名,如admin,其他默认
如果成功则显示:
--------------------------------------------------------------------------
| MobaSSH Home v1.60 |
| (SSH server for Win32 based on Cygwin/OpenSSH) |
| |
| Important |
| - Your computer drives are accessible through the /cygdrive directory |
| - Network shares are accessible by typing //<remote_computer> |
| - The Windows registry is browsable through the /registry path |
| |
| Useful commands |
| - MobaHwInfo: detailed information about OS and hardware |
| - MobaSwInfo: installed programs list |
| - MobaTaskList, MobaKillTask: list/kill Windows tasks |
| - TCPCapture: Network packets and ports monitoring tool |
| - scp, sftp: transfer files through the crypted ssh connexion |
| - nedit, vim: text editors with syntax highlighting |
| - rsync, wget: sync local directories with network computers |
| |
| This version is for personal use or evaluation purposes only |
| For information please visit: http://mobassh.mobatek.net/versions.php |
--------------------------------------------------------------------------
[Fri Jan 13 - 10:32:32] ~
[admin.admin-PC] $
相关文章推荐
- 使openssh ssh登陆后,gnome-terminal title自动修改为host的名称
- Ubuntu安装SSH时出现软件包openssh-server还没有可供安装的
- ftp、sftp、scp、ssh、openssh
- Win10 SSH 连接Ubuntu openssh 服务器
- SSH学习之中的一个 OpenSSH基本使用
- sudo apt-get install openssh-serveropenssh-server;openssh-server : Depends: openssh-client (= 1:6.1p
- 使用SSH开头输入命令不存在情况和openssh-clients安装不上问题
- ubuntu 安装ssh-server时出现错误:openssh-server: Depends: openssh-client (= 1:5.3p1-3ubuntu3) but 1:5.3p1-3u
- OpenSSH服务——基于密钥的ssh认证实现
- 打通windows和Linux下的传输问题解决只能使用SSH协议下的22端口来传输文件(Openssh for windows)
- ftp、sftp、scp、ssh、openssh
- Java ftp实现文件的上传和下载ftp,sftp sun.net.ftp.FtpProtocolException:Welcome message: SSH-2.0-OpenSSH_5.1
- 安装Net::SSH::Perl (更好用的模块Net::OpenSSH)
- openssh7.1重启/sbin/restorecon:lstat(/etc/ssh/ssh_host_key.pub) failed报错
- ftp、sftp、scp、ssh、openssh
- linux 安装SSH Server + FTP Server(openssh-server + vsftp)
- ssh之openssh使用
- SSL和SSH和OpenSSH,OpenSSL有什么区别
- ssh "openssh-daemon is stopped"操作之伤+sftp访问“-bash: /dev/null: Permission denied”
- CentOS如何禁用root本地或远程ssh登录及升级OpenSSH