当前位置:网站首页>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
边栏推荐
- Nodejs installation tutorial
- [golang] golang implements the post request to send form type data function
- Redistribution distributed lock types
- BBR and queuing
- RetinaNet:Focal Loss for Dense Object Detection
- MySQL根据备注查询表、字段
- Redismission inventory deduction demo
- 07【Path、Files类的使用】
- 在线客服聊天系统源码_美观强大golang内核开发_二进制运行傻瓜式安装_附搭建教程
- 性能测试总结(一)---基础理论篇
猜你喜欢

Xilinx FPGA Microblaze AXI_ IIC usage and experience

Docker builds MySQL master-slave replication

read_ CSV error: 'GBK' codec can't decode byte 0xb4 in position 274: illegal multibyte sequence

Over the weekend, I had a dinner with the technology gurus and talked about the "golden nine and silver ten" peak of the software testing industry [the trend of involution has been formed]

Idea background image set

"Low power Bluetooth module" master-slave integrated Bluetooth sniffer - help smart door lock

Cub school learning - Kernel Development

2022, the average salary of the soft tester, after reading it, I was instantly cool

Pytorch learning -- using gradient descent method to realize univariate linear regression

Ask n! How many zeros are there behind
随机推荐
Redistribution distributed lock types
Conversion between hexadecimal string and byte array
This should be postman, the most complete interface testing tool in the whole network
1184. Distance between bus stops: simple simulation problem
【C】 Understanding C language variable scope and life cycle from memory
2022,软测人的平均薪资,看完我瞬间凉了...
简单使用 MySQL 索引
这才是开发者神器正确的打开方式!
Idea background image set
Redismission watchdog implementation mechanism can be understood at a glance
TwinCAT3各版本下载路径
MySQL queries tables and fields according to comments
【攻防世界WEB】难度五星15分进阶题:ics-07
【10】团队协作和跨团队协作
Lanqiao cup provincial training camp - commonly used STL
MicroBlaze adds a custom IP core and attaches the Axi bus to realize ssd1306 OELD drive
Kubernetes Foundation
Druid encryption command
Ask n! How many zeros are there behind
Docker builds MySQL master-slave replication