最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Linux ssh服務(wù)器配置代碼實例

 更新時間:2020年09月11日 11:53:01   作者:陌鉎こ城sHi  
這篇文章主要介紹了Linux ssh服務(wù)器配置代碼實例,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友可以參考下

使用如下終端命令可以在 Linux 主機(jī)中安裝 ssh服務(wù)器sudo apt-get install openssh-server

lin@lin-machine:~$ sudo apt-get install openssh-server
Reading package lists... Done
Building dependency tree    
Reading state information... Done
The following extra packages will be installed:
 libck-connector0 ncurses-term openssh-client openssh-sftp-server
 ssh-import-id
Suggested packages:
 libpam-ssh keychain monkeysphere rssh molly-guard
The following NEW packages will be installed:
 libck-connector0 ncurses-term openssh-server openssh-sftp-server
 ssh-import-id
The following packages will be upgraded:
 openssh-client
1 upgraded, 5 newly installed, 0 to remove and 438 not upgraded.
Need to get 1,180 kB of archives.
After this operation, 3,429 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://cn.archive.ubuntu.com/ubuntu/ trusty/main libck-connector0 amd64 0.4.5-3.1ubuntu2 [10.5 kB]
Get:2 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main openssh-client amd64 1:6.6p1-2ubuntu2.11 [564 kB]
Get:3 http://cn.archive.ubuntu.com/ubuntu/ trusty/main ncurses-term all 5.9+20140118-1ubuntu1 [243 kB]
Get:4 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main openssh-sftp-server amd64 1:6.6p1-2ubuntu2.11 [34.1 kB]
Get:5 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main openssh-server amd64 1:6.6p1-2ubuntu2.11 [318 kB]
Get:6 http://cn.archive.ubuntu.com/ubuntu/ trusty/main ssh-import-id all 3.21-0ubuntu1 [9,624 B]
Fetched 1,180 kB in 22s (51.6 kB/s)                      
Preconfiguring packages ...
Selecting previously unselected package libck-connector0:amd64.
(Reading database ... 168838 files and directories currently installed.)
Preparing to unpack .../libck-connector0_0.4.5-3.1ubuntu2_amd64.deb ...
Unpacking libck-connector0:amd64 (0.4.5-3.1ubuntu2) ...
Preparing to unpack .../openssh-client_1%3a6.6p1-2ubuntu2.11_amd64.deb ...
Unpacking openssh-client (1:6.6p1-2ubuntu2.11) over (1:6.6p1-2ubuntu2.7) ...
Selecting previously unselected package ncurses-term.
Preparing to unpack .../ncurses-term_5.9+20140118-1ubuntu1_all.deb ...
Unpacking ncurses-term (5.9+20140118-1ubuntu1) ...
Selecting previously unselected package openssh-sftp-server.
Preparing to unpack .../openssh-sftp-server_1%3a6.6p1-2ubuntu2.11_amd64.deb ...
Unpacking openssh-sftp-server (1:6.6p1-2ubuntu2.11) ...
Selecting previously unselected package openssh-server.
Preparing to unpack .../openssh-server_1%3a6.6p1-2ubuntu2.11_amd64.deb ...
Unpacking openssh-server (1:6.6p1-2ubuntu2.11) ...
Selecting previously unselected package ssh-import-id.
Preparing to unpack .../ssh-import-id_3.21-0ubuntu1_all.deb ...
Unpacking ssh-import-id (3.21-0ubuntu1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Processing triggers for ufw (0.34~rc-0ubuntu2) ...
Setting up libck-connector0:amd64 (0.4.5-3.1ubuntu2) ...
Setting up openssh-client (1:6.6p1-2ubuntu2.11) ...
Setting up ncurses-term (5.9+20140118-1ubuntu1) ...
Setting up openssh-sftp-server (1:6.6p1-2ubuntu2.11) ...
Setting up openssh-server (1:6.6p1-2ubuntu2.11) ...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Creating SSH2 ECDSA key; this may take some time ...
Creating SSH2 ED25519 key; this may take some time ...
ssh start/running, process 17527
Setting up ssh-import-id (3.21-0ubuntu1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for ufw (0.34~rc-0ubuntu2) ...

查看當(dāng)前的虛擬機(jī)的ip地址

lin@lin-machine:~$ ifconfig
eth0   Link encap:Ethernet HWaddr 00:0c:29:f1:a1:37 
     inet addr:192.168.147.136 Bcast:192.168.147.255 Mask:255.255.255.0
     inet6 addr: fe80::20c:29ff:fef1:a137/64 Scope:Link
     UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
     RX packets:3950 errors:0 dropped:0 overruns:0 frame:0
     TX packets:514 errors:0 dropped:0 overruns:0 carrier:0
     collisions:0 txqueuelen:1000 
     RX bytes:1453734 (1.4 MB) TX bytes:63371 (63.3 KB)

lo    Link encap:Local Loopback 
     inet addr:127.0.0.1 Mask:255.0.0.0
     inet6 addr: ::1/128 Scope:Host
     UP LOOPBACK RUNNING MTU:65536 Metric:1
     RX packets:180 errors:0 dropped:0 overruns:0 frame:0
     TX packets:180 errors:0 dropped:0 overruns:0 carrier:0
     collisions:0 txqueuelen:1 
     RX bytes:13377 (13.3 KB) TX bytes:13377 (13.3 KB)

在PC上查看ip地址

Microsoft Windows [版本 6.1.7601]
版權(quán)所有 (c) 2009 Microsoft Corporation。保留所有權(quán)利。
E:\Users\libra>ipconfig
Windows IP 配置
...
以太網(wǎng)適配器 VMware Network Adapter VMnet8:

  連接特定的 DNS 后綴 . . . . . . . :
  本地鏈接 IPv6 地址. . . . . . . . : fe80::9074:b9f5:ddaf:9082%25
  IPv4 地址 . . . . . . . . . . . . : 192.168.147.1
  子網(wǎng)掩碼 . . . . . . . . . . . . : 255.255.255.0
  默認(rèn)網(wǎng)關(guān). . . . . . . . . . . . . :
...
E:\Users\libra>

【備注】pc和linux虛擬機(jī)在同個網(wǎng)段的

測試他們是否可以ping

lin@lin-machine:~$ ping 192.168.147.1
PING 192.168.147.1 (192.168.147.1) 56(84) bytes of data.
64 bytes from 192.168.147.1: icmp_seq=1 ttl=64 time=0.586 ms
64 bytes from 192.168.147.1: icmp_seq=2 ttl=64 time=0.442 ms
64 bytes from 192.168.147.1: icmp_seq=3 ttl=64 time=0.435 ms
^C
--- 192.168.147.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.435/0.487/0.586/0.074 ms

【可能存在一些異常的原因】注意: Windows 7 默認(rèn)打開了系統(tǒng)防火墻,是禁ping的,如果在Linux下ping Windows
7,需要先關(guān)閉Windows 7 的防火墻。

沒有問題后我們在SecureCRT上開始測試

【備注】根據(jù)自己的情況來寫IP和主機(jī)名

來測試一下

以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

  • Linux之UDP協(xié)議及其編程全流程

    Linux之UDP協(xié)議及其編程全流程

    這篇文章主要介紹了Linux之UDP協(xié)議及其編程全流程,具有很好的參考價值,希望對大家有所幫助。如有錯誤或未考慮完全的地方,望不吝賜教
    2023-03-03
  • 關(guān)于Linux下對于makefile的理解

    關(guān)于Linux下對于makefile的理解

    下面小編就為大家?guī)硪黄P(guān)于Linux下對于makefile的理解。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧
    2017-01-01
  • Linux中有效地管理進(jìn)程的8個命令

    Linux中有效地管理進(jìn)程的8個命令

    這篇文章主要給大家介紹了關(guān)于Linux中有效地管理進(jìn)程的8個命令,文中通過示例代碼介紹的非常詳細(xì),對大家學(xué)習(xí)或者使用linux具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2018-09-09
  • CentOS SSH無密碼登錄的配置

    CentOS SSH無密碼登錄的配置

    本篇文章主要介紹了CentOS SSH無密碼登錄的配置,避免了繁瑣的密碼驗證,有需要的朋友可以了解一下。
    2016-10-10
  • GTK treeview原理及使用方法解析

    GTK treeview原理及使用方法解析

    這篇文章主要介紹了GTK treeview原理及使用方法解析,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友可以參考下
    2020-09-09
  • Centos8(最小化安裝)全新安裝Python3.8+pip的方法教程

    Centos8(最小化安裝)全新安裝Python3.8+pip的方法教程

    這篇文章主要介紹了Centos8(最小化安裝)全新安裝Python3.8+pip的方法教程,本文給大家整理了一份命令,需要的朋友可以參考下
    2020-02-02
  • apache https配置詳細(xì)步驟講解

    apache https配置詳細(xì)步驟講解

    主要講述在windows下apache配置SSL以實現(xiàn)http轉(zhuǎn)換為https
    2010-06-06
  • ab網(wǎng)站壓力測試命令

    ab網(wǎng)站壓力測試命令

    這篇文章主要介紹了ab網(wǎng)站壓力測試命令,需要的朋友可以參考下
    2016-05-05
  • 簡單談?wù)刢entos7中配置php

    簡單談?wù)刢entos7中配置php

    windows server2008下搭建PHP運行環(huán)境,用IIS+PHP或者phpstudy,或wamp。今天試了試,在linux下搭建php運行環(huán)境。感覺還不錯。
    2018-06-06
  • Linux中scp命令的使用

    Linux中scp命令的使用

    這篇文章主要介紹了Linux中scp命令的使用,具有很好的參考價值,希望對大家有所幫助,如有錯誤或未考慮完全的地方,望不吝賜教
    2023-12-12

最新評論

剑河县| 百色市| 辽阳县| 酒泉市| 新源县| 新宾| 武川县| 榆社县| 临洮县| 曲水县| 郁南县| 绵阳市| 延津县| 安新县| 寻甸| 兴文县| 淅川县| 新巴尔虎右旗| 紫阳县| 东莞市| 乌审旗| 盐源县| 阿城市| 和政县| 沙洋县| 宣化县| 广安市| 浦东新区| 巴马| 夏邑县| 三都| 卫辉市| 峨边| 茌平县| 呼伦贝尔市| 兴海县| 大洼县| 夏津县| 浦县| 东宁县| 增城市|