ssh远程连接Ubuntu
来源:互联网 发布:vb 播放器 编辑:程序博客网 时间:2024/05/18 02:10
SSH服务器,可以通过SSH协议来访问远程服务器,代替telnet和ftp。但是ubuntu默认是不启用root用户,也不允许root远程登录的。所以需要先启用root用户
启用root用户:sudo passwd root //修改密码后就启用了。
安装OpenSSH server:
1. 使用apt命令安装openssh server
$ sudo apt-get install openssh-server
2. 可以对 openssh server进行配置
$ sudo vi /etc/ssh/sshd_config
找到PermitRootLogin no一行,改为PermitRootLogin yes
3. 重启 openssh server
$ sudo service ssh restart
4. 客户端如果是ubuntu的话,则已经安装好ssh client,可以用下面的命令连接远程服务器。
$ ssh xxx.xxx.xxx.xxx
如果是windows系统的话,可以使用SSH Secure Shell等ssh软件进行远程连接。
ssh: connect to host localhost port 22: Connection refused
需要重启ssh
然后检查一下是不是重新运行了:
ps aux | grep -i ssh
或者先卸载掉
$ sudo apt-get remove openssh-server
再重新安装一遍
Fire this command:
sudo iptables -L
and what do you see? If you are seeing that no traffic is allowed. In that case if that's true, then
sudo iptables -A INPUT -p tcp --dport ssh -j ACCEPT
this command tells system to allow incoming connection to port 22...and usually should solve your dilemma, specifically for ssh / sshd
1 0
- ssh远程连接ubuntu
- ssh远程连接Ubuntu
- Ubuntu下SSH远程连接
- ubuntu 下ssh远程连接
- ubuntu 开启远程连接 ssh
- ubuntu配置SSH远程连接
- ssh远程连接桌面版ubuntu,连接经验
- 怎样SSH远程连接虚拟机中的Ubuntu
- 关于ubuntu设置ssh远程连接
- 怎样SSH远程连接虚拟机中的Ubuntu
- ubuntu SSH 连接、远程上传下载文件
- Ubuntu无法ssh远程连接问题
- Ubuntu SSH远程连接的用户帐号
- ubuntu使用ssh连接远程服务器
- Ubuntu ssh远程无法连接问题
- ubuntu下的ssh远程连接
- Ubuntu下SSH远程连接、文件传输
- Ubuntu下使用ssh连接远程服务器
- C/C++学习(四)变态跳台阶
- 临时
- codevs 1058 合唱队形
- iOS跳转到指定页面,而不是简单的返回上一个页面
- 【bzoj3155】Preprefix Sum
- ssh远程连接Ubuntu
- 我的iOS学习历程 - UITableView的编辑
- WebGL实现HTML5贪吃蛇3D游戏
- Linux 非缓冲I/O与缓冲I/O
- { Cracking The Coding Interview: 150 programming Q&A } 5th edition Part I
- POJ 1426 Find The Multiple【dfs】
- C语言的那些小秘密之异常处理
- CSP应用开发-CryptAPI解析X509及PKCS#12证书
- HDU 4548 美素数【素数打表】