SecureCRT[x1] 使用广泛的终端仿真。
要用SecureCRT连接Ubuntu,ssh程序分为有客户端程序openssh-client和服务端程序openssh-server。如果需要ssh登陆到别的电脑,需要安装openssh-client,该程序ubuntu是默认安装的。而如果需要从远程连接到本机,则需要安装openssh-server,该程序需要自己安装。
1、首先要开启ssh功能:
sudo apt-get install openssh-server
此时出现错误--Could not get lock /var/lib/dpkg/lock
接着在终端输入:
sudo rm /var/cache/apt/archives/lock
然后再运行安装代码
sudo apt-get install openssh-client
查看openssh-server是否启动
$ ps-e | grep ssh
进程ssh-agent是客户端,sshd为服务器端,如果结果中有sshd的进程说明openssh-server已经启动,如果没有则需运行命令启动
启动、停止和重启openssh-server的命令如下
/etc/init.d/ssh start
/etc/init.d/ssh stop
/etc/init.d/ssh restart
2、查看ubuntu的ip
Ifconfig[x2]
如果提示:The program 'unzip' is currently not installed,则根据提示安装相应的工具:sudo apt-get install net-tools即可。
3、打开SecureCRT配置[x3]
ProtoCol模式选为SSH2,Port为22,HostName为192.168.28.128,UserName为我们Ubuntu的登录账户wlq/871020。