当前位置:网站首页>How to use SSH and SFTP protocols at home
How to use SSH and SFTP protocols at home
2022-07-24 11:13:00 【Brother Xing plays with the clouds】
adopt SSH and SFTP agreement , We have access to other devices , Efficient and secure transfer of files, etc .
A few years ago , I decided to configure another computer , So that I can access it at work to transfer the files I need . Do that , The most basic step is to ask your network provider (ISP) Provide a fixed address .
There is an unnecessary but important step , Is to ensure that your accessible system is secure . In my case , I plan to visit it only in the workplace , So I can limit the access IP Address . Even so , You still have to take as many safety measures as possible . Once you set up this system , People all over the world will soon be able to try to access your system . This is very surprising and frightening . You can find this through the log file . I speculate that there are detection robots doing their best to search for systems without safety measures .
Soon after I set up the system , I don't think this kind of interview is of great use , So , I shut it down so that I don't worry about it anymore . For all that , As long as it is erected , Use... In your home network SSH and SFTP It's still a little useful .
Of course , There is a prerequisite , This other computer must have been turned on , It doesn't matter whether the computer is logged in or not . You also need to know its IP Address . There are two ways to know , One is to access your router through a browser , In general, your address format is similar to 192.168.1.254 such . Through some search , It is easy to find out that the current is on and connected to eth0 perhaps wifi System on . How to identify the computer you are looking for may be a challenge .
The easier way to find this computer is , open shell, Input :
ifconfig
The command will output some information , The information you need is inet Back , Looks like 192.168.1.234 similar . When you find this , Go back to the client computer you want to access this host , Enter... On the command line :
If you want the above command to execute normally ,gregp It must be the correct user name in the host system . You will be asked for their password . If the password and user name you typed are correct , You will pass shell The environment is connected to this computer . I'm honest , about SSH I don't use it often . I use it occasionally , I can run dnf To update other computers than those I often use . Usually , I use SFTP :
sftp [email protected]
I need a simple way to transfer a file to another computer . Compared with flash sticks and additional devices , It's more convenient , It takes less time .
Once the connection is established ,SFTP There are two basic commands ,get, Receive files from the host ;put, Send files to the host . Before connecting , I often move to the folder I want to receive or transmit on the client . After connecting , You will be in a top-level directory , such as home/gregp. Once the connection is successful , You can use it as if it were on the client cd, Change your working path on the host . You may need to use ls To confirm your position .
If you want to change the working directory of your client . use lcd command ( namely local change directory It means ). alike , use lls To display the contents of the client working directory .
If the directory name you want is not available on the host , What are you gonna do? ? use mkdir Create a new directory on the host . Or you can copy all the files in the entire directory to the host :
put -r thisDir/
This will create the directory on the host and copy all its files and subdirectories to the host . This transmission is very fast , Can reach the upper limit of hardware . It's not like encountering network bottlenecks like Internet transmission . To see what you can do in SFTP A list of commands that can be used in a session :
mansftp
I can also do it on my computer Windows Virtual machine internal use SFTP, This is another advantage of configuring a virtual machine instead of a dual system . This allows me to be in the system Linux Partially move in or out of the file . And I just need to be Windows Just use a client in .
You can use SSH or SFTP Access through network cable or WIFI Any device connected to your router . here , I used one called SSHDroid Application , Able to operate in passive mode SSH. In other words , You can use your computer to access Android equipment . Recently, I found another application ,Admin Hands, Whether your client is a tablet or a mobile phone , Can use SSH perhaps SFTP operation . This app is great for backing up and sharing photos on your phone .
via: https://opensource.com/article/18/10/ssh-sftp-home-network
author :Geg Pittman Topic selection :lujun9972 translator :singledo proofreading :wxy
This paper is written by LCTT Original compilation ,Linux China Honor roll out
边栏推荐
- Read the triode easily. It turns out that it works like this
- Lanqiao cup provincial training camp - commonly used STL
- MySQL engine
- Capture and handling of JDBC exception sqlexception
- Detailed explanation and example demonstration of Modbus RTU communication protocol
- 【C】 Understanding C language variable scope and life cycle from memory
- Altium one key automatic BOM
- 《Nature》论文插图复刻第3期—面积图(Part2-100)
- 【攻防世界WEB】难度五星15分进阶题:ics-07
- 07【Path、Files类的使用】
猜你喜欢

【白帽子讲Web安全】第二章 浏览器安全
![[live registration] analysis of location cache module and detailed explanation of OCP monitoring and alarm](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[live registration] analysis of location cache module and detailed explanation of OCP monitoring and alarm

08【AIO编程】

This should be postman, the most complete interface testing tool in the whole network

Conversion between hexadecimal string and byte array

Download path of twincat3 versions

Taking advantage of the momentum, oceanbase promotes the lean growth of digital payment

Blue Bridge Cup provincial match training camp - Calculation of date

1184. Distance between bus stops: simple simulation problem

Four components and working principle of frequency converter
随机推荐
Five application scenarios of Bluetooth module
西门子200smart自创库与说明
Reprint: getting started with cache coherence
[golang] golang realizes sending wechat service number template messages
浅析拉格朗日乘数法及其对偶问题
Robot Framework官方教程(一)入门
只会“点点点”,凭什么让开发看得起你?
【Golang】golang实现简单memcache
【Golang】golang中time类型的before方法
这个应该是全网最全的接口测试工具之postman
Detailed explanation of the implementation process of redistribution watchdog
【10】团队协作和跨团队协作
Blue Bridge Cup - binary conversion exercise
read_ CSV error: 'GBK' codec can't decode byte 0xb4 in position 274: illegal multibyte sequence
HDU 3351:Seinfeld
HDU5667 Sequence
Simply understand MODBUS function code and partition
08【AIO编程】
STM32+ESP8266+MQTT协议连接阿里云物联网平台
Docker builds MySQL master-slave replication