电脑知识|欧美黑人一区二区三区|软件|欧美黑人一级爽快片淫片高清|系统|欧美黑人狂野猛交老妇|数据库|服务器|编程开发|网络运营|知识问答|技术教程文章 - 好吧啦网

您的位置:首頁(yè)技術(shù)文章
文章詳情頁(yè)

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

瀏覽:2日期:2024-04-11 09:40:48

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

lin@lin-machine:~$ sudo apt-get install openssh-serverReading package lists... DoneBuilding dependency tree Reading state information... DoneThe following extra packages will be installed: libck-connector0 ncurses-term openssh-client openssh-sftp-server ssh-import-idSuggested packages: libpam-ssh keychain monkeysphere rssh molly-guardThe following NEW packages will be installed: libck-connector0 ncurses-term openssh-server openssh-sftp-server ssh-import-idThe following packages will be upgraded: openssh-client1 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] YGet: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 rebootProcessing 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 17527Setting 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:~$ ifconfigeth0 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:Userslibra>ipconfigWindows 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:Userslibra>

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

測(cè)試他們是否可以ping

lin@lin-machine:~$ ping 192.168.147.1PING 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 ms64 bytes from 192.168.147.1: icmp_seq=2 ttl=64 time=0.442 ms64 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 1999msrtt min/avg/max/mdev = 0.435/0.487/0.586/0.074 ms

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

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

沒(méi)有問(wèn)題后我們?cè)赟ecureCRT上開(kāi)始測(cè)試

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

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

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

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

來(lái)測(cè)試一下

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

以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持好吧啦網(wǎng)。

標(biāo)簽: Linux系統(tǒng)
相關(guān)文章:
主站蜘蛛池模板: 减速机三参数组合探头|TSM803|壁挂式氧化锆分析仪探头-安徽鹏宸电气有限公司 | 二维运动混料机,加热型混料机,干粉混料机-南京腾阳干燥设备厂 | SDG吸附剂,SDG酸气吸附剂,干式酸性气体吸收剂生产厂家,超过20年生产使用经验。 - 富莱尔环保设备公司(原名天津市武清县环保设备厂) | 杭州中央空调维修_冷却塔/新风机柜/热水器/锅炉除垢清洗_除垢剂_风机盘管_冷凝器清洗-杭州亿诺能源有限公司 | 北京发电车出租-发电机租赁公司-柴油发电机厂家 - 北京明旺盛安机电设备有限公司 | 脉冲布袋除尘器_除尘布袋-泊头市净化除尘设备生产厂家 | LHH药品稳定性试验箱-BPS系列恒温恒湿箱-意大利超低温冰箱-上海一恒科学仪器有限公司 | 超声波清洗机_大型超声波清洗机_工业超声波清洗设备-洁盟清洗设备 | 洗地机-全自动/手推式洗地机-扫地车厂家_扬子清洁设备 | 无锡装修装潢公司,口碑好的装饰装修公司-无锡索美装饰设计工程有限公司 | 电动高尔夫球车|电动观光车|电动巡逻车|电动越野车厂家-绿友机械集团股份有限公司 | 洗砂机械-球磨制砂机-洗沙制砂机械设备_青州冠诚重工机械有限公司 | 快速卷帘门_硬质快速卷帘门-西朗门业 | 上海办公室装修公司_办公室设计_直营办公装修-羚志悦装 | 上海乾拓贸易有限公司-日本SMC电磁阀_德国FESTO电磁阀_德国FESTO气缸 | 浙江华锤电器有限公司_地磅称重设备_防作弊地磅_浙江地磅售后维修_无人值守扫码过磅系统_浙江源头地磅厂家_浙江工厂直营地磅 | 石家庄网站建设|石家庄网站制作|石家庄小程序开发|石家庄微信开发|网站建设公司|网站制作公司|微信小程序开发|手机APP开发|软件开发 | 丹佛斯变频器-丹佛斯压力开关-变送器-广州市风华机电设备有限公司 | 亳州网络公司 - 亳州网站制作 - 亳州网站建设 - 亳州易天科技 | 山楂片_雪花_迷你山楂片_山楂条饼厂家-青州市丰源食品厂 | 全自动贴标机-套标机-工业热风机-不干胶贴标机-上海厚冉机械 | 医学动画公司-制作3d医学动画视频-医疗医学演示动画制作-医学三维动画制作公司 | 耐酸碱泵-自吸耐酸碱泵型号「品牌厂家」立式耐酸碱泵价格-昆山国宝过滤机有限公司首页 | 骁龙云呼电销防封号系统-axb电销平台-外呼稳定『免费试用』 | 烟台金蝶财务软件,烟台网站建设,烟台网络推广 | 膜片万向弹性联轴器-冲压铸造模具「沧州昌运模具」 | 钣金加工厂家-钣金加工-佛山钣金厂-月汇好 | 水轮机密封网 | 水轮机密封产品研发生产厂家 | 澳门精准正版免费大全,2025新澳门全年免费,新澳天天开奖免费资料大全最新,新澳2025今晚开奖资料,新澳马今天最快最新图库-首页-东莞市傲马网络科技有限公司 | 塑料薄膜_PP薄膜_聚乙烯薄膜-常州市鑫美新材料包装厂 | 杭州顺源过滤机械有限公司官网-压滤机_板框压滤机_厢式隔膜压滤机厂家 | 一体化污水处理设备,一体化污水设备厂家-宜兴市福源水处理设备有限公司 | 二手电脑回收_二手打印机回收_二手复印机回_硒鼓墨盒回收-广州益美二手电脑回收公司 | 网站建设-网站制作-网站设计-网站开发定制公司-网站SEO优化推广-咏熠软件 | 扒渣机厂家_扒渣机价格_矿用扒渣机_铣挖机_撬毛台车_襄阳永力通扒渣机公司 | 蓝米云-专注于高性价比香港/美国VPS云服务器及海外公益型免费虚拟主机 | 工业rfid读写器_RFID工业读写器_工业rfid设备厂商-ANDEAWELL | 广州云仓代发-昊哥云仓专业电商仓储托管外包代发货服务 | 重庆监控_电子围栏设备安装公司_门禁停车场管理系统-劲浪科技公司 | 培训中心-翰香原香酥板栗饼加盟店总部-正宗板栗酥饼技术 | 「银杏树」银杏树行情价格_银杏树种植_山东程锦园林 |