五月综合激情婷婷六月,日韩欧美国产一区不卡,他扒开我内裤强吻我下面视频 ,无套内射无矿码免费看黄,天天躁,日日躁,狠狠躁

新聞動(dòng)態(tài)

Linux上通過(guò)SSH掛載遠(yuǎn)程文件系統(tǒng)方法詳解

發(fā)布日期:2022-03-12 19:32 | 文章來(lái)源:源碼之家

SSHFS的特點(diǎn):

基于FUSE(Linux的最佳用戶空間文件系統(tǒng)框架)

多線程:在服務(wù)器上可以有多個(gè)請(qǐng)求

允許大讀?。ㄗ畲?4k)

緩存目錄內(nèi)容

步驟1:安裝fuse-sshfs

對(duì)于centos/rhel用戶,fuse sshfs在epel repository下可用,因此請(qǐng)確保在系統(tǒng)中安裝了epel repository?,F(xiàn)在執(zhí)行以下命令安裝它

在CENTOS/RHELL上:

#yum install fuse-sshfs

在Ubuntu和Dabian上:

$ sudo apt-get update
$ sudo apt-get install sshfs

步驟2:裝載遠(yuǎn)程目錄

讓我們使用sshfs掛載遠(yuǎn)程服務(wù)器目錄,確保遠(yuǎn)程系統(tǒng)運(yùn)行的ssh服務(wù)器與系統(tǒng)的ssh連接正確。

首先創(chuàng)建裝入點(diǎn)

# mkdir /mntssh

讓我們掛載遠(yuǎn)程目錄。對(duì)于本例,我們將把/home/remoteuser目錄從192.168.1.12(remote.example.com)系統(tǒng)安裝到本地系統(tǒng)。

# sshfs laitkor@remote.example.com:/home/remoteuser /opt/mntssh

樣本輸出

The authenticity of host 'remote.example.com (192.168.1.12)' can't be established.
RSA key fingerprint is 77:85:9e:ff:de:2a:ef:49:68:09:9b:dc:f0:f3:09:07.
Are you sure you want to continue connecting (yes/no)? yes
remoteuser@remote.example.com's password:

步驟3:驗(yàn)證安裝

在本地掛載點(diǎn)上掛載遠(yuǎn)程文件系統(tǒng)后,通過(guò)運(yùn)行mount命令進(jìn)行驗(yàn)證。

# mount
 
/dev/mapper/vg_svr1-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda1 on /boot type ext4 (rw)remoteuser@remote.example.com:/home/remoteuser on /mntssh type fuse.sshfs (rw,nosuid,nodev)

同樣導(dǎo)航到你的掛載點(diǎn),將從遠(yuǎn)程系統(tǒng)中看到文件

# cd /mntssh
# ls

步驟4:在系統(tǒng)引導(dǎo)時(shí)掛載目錄

如果要在每次系統(tǒng)重新引導(dǎo)時(shí)自動(dòng)掛載遠(yuǎn)程文件系統(tǒng),請(qǐng)?jiān)? etc / fstab文件中添加以下條目。確保在遠(yuǎn)程和本地系統(tǒng)之間安裝了基于密鑰的ssh。

remoteuser@remote.example.com:/home/remoteuser /mntssh fuse.sshfs defaults 0 0

步驟5:卸載目錄

如果您的工作結(jié)束并且您不再需要已安裝的目錄,則只需使用以下命令卸載。

#umount / mntssh

版權(quán)聲明:本站文章來(lái)源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請(qǐng)保持原文完整并注明來(lái)源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非maisonbaluchon.cn所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來(lái)源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來(lái),僅供學(xué)習(xí)參考,不代表本站立場(chǎng),如有內(nèi)容涉嫌侵權(quán),請(qǐng)聯(lián)系alex-e#qq.com處理。

相關(guān)文章

實(shí)時(shí)開通

自選配置、實(shí)時(shí)開通

免備案

全球線路精選!

全天候客戶服務(wù)

7x24全年不間斷在線

專屬顧問(wèn)服務(wù)

1對(duì)1客戶咨詢顧問(wèn)

在線
客服

在線客服:7*24小時(shí)在線

客服
熱線

400-630-3752
7*24小時(shí)客服服務(wù)熱線

關(guān)注
微信

關(guān)注官方微信
頂部