Go to advanced search

by tpyo kingg
Mon Feb 24, 2020 5:55 am
Forum: Networking and servers
Topic: how manage FTP requests from PC to server through a Raspberry?
Replies: 13
Views: 205

Re: how manage FTP requests from PC to server through a Raspberry?

I did give the correct syntax for scp to pass through the Raspberry Pi using ProxyJump. Both machnes need to be listed, and the user names do have to be correct. All this is predicated on the Raspberry Pi being both accessible to you and between you and the SFTP server. scp -J [email protected].example...
by tpyo kingg
Sun Feb 23, 2020 6:58 pm
Forum: Networking and servers
Topic: how manage FTP requests from PC to server through a Raspberry?
Replies: 13
Views: 205

Re: how manage FTP requests from PC to server through a Raspberry?

If the following lets you log in from the Raspberry Pi to the machines with the files: ssh [email protected].168.0.14 Then you should be able to bounce through through the Pi from the outside: scp -J [email protected].example.org [email protected].168.0.14:/path/to/some/file.xml /path/to/destination/ That is if the Raspberr...
by tpyo kingg
Sun Feb 23, 2020 6:14 pm
Forum: Networking and servers
Topic: how manage FTP requests from PC to server through a Raspberry?
Replies: 13
Views: 205

Re: how manage FTP requests from PC to server through a Raspberry?

You can set up the Raspberry Pi as a jump host for SFTP and reach the other machines via it using the ProxyJump option. It is explained in the manual page for ssh_config or look at the -J option for either the SSH client or the SFTP client. FTP, due to the way it works, is out of the question in suc...
by tpyo kingg
Sat Feb 22, 2020 9:24 am
Forum: Off topic discussion
Topic: My kid is using a Raspberry Pi - should I call the police???
Replies: 32
Views: 1512

Re: My kid is using a Raspberry Pi - should I call the police???

Are the posters available for purchase or a quality PDF available for download and printing locally? :)
by tpyo kingg
Sat Feb 22, 2020 9:21 am
Forum: Networking and servers
Topic: how manage FTP requests from PC to server through a Raspberry?
Replies: 13
Views: 205

Re: how manage FTP requests from PC to server through a Raspberry?

Maybe something that listens port 21 and forward the requests? One site for general questions not involving the Raspberry Pi or Raspbian would be Linux Questions. If you ask there, keep in mind that both ports 20 and 21 would be involved. FTP proxies are quite difficult to arrange, to understate th...
by tpyo kingg
Fri Feb 21, 2020 7:58 pm
Forum: Troubleshooting
Topic: Apache server does not see /media/pi directory
Replies: 14
Views: 177

Re: Apache server does not see /media/pi directory

That's more of a work-around with potential side-effects than a solution. Yes, the web server processes now have read access to the directories. However, the web server processes now also have write access to the very same directories. :( Again, the error message indicates this is a matter of read a...
by tpyo kingg
Fri Feb 21, 2020 5:38 pm
Forum: Troubleshooting
Topic: Apache server does not see /media/pi directory
Replies: 14
Views: 177

Re: Apache server does not see /media/pi directory

Error message in the error.log is following: [Fri Feb 21 18:08:51.244844 2020] [core:error] [pid 17927:tid 1962923040] (13)Permission denied: [client 10.0.0.114:53513] AH00035: access to /SSD denied (filesystem path '/media/pi/SSD1') because search permissions are missing on a component of the path...
by tpyo kingg
Fri Feb 21, 2020 4:27 pm
Forum: Troubleshooting
Topic: Apache server does not see /media/pi directory
Replies: 14
Views: 177

Re: Apache server does not see /media/pi directory

Ok. I guess it goes without saying that you reloaded the Apache2 configuration after making changes to the configuration file. The right file to change would be /etc/apache2/sites-available/000-default.conf unless you have made a separate vhost there inside /etc/apache2/sites-available/ The useful i...
by tpyo kingg
Fri Feb 21, 2020 3:19 pm
Forum: Troubleshooting
Topic: Apache server does not see /media/pi directory
Replies: 14
Views: 177

Re: Apache server does not see /media/pi directory

The DocumntRoot directive must point to the actual directory you plan to serve files from, somewhere under /media/pi. (By the way it is unsafe to point it at the filesystem root.) So set it to /media/pi or some subdirectory there. <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "/meda/...
by tpyo kingg
Fri Feb 21, 2020 2:49 pm
Forum: Networking and servers
Topic: FTP Permissions
Replies: 5
Views: 136

Re: FTP Permissions

The default SFTP can do some chmod work but it is a simplified function and lacks the recursive capabilities of the full chmod utility. FTP transmits the usernames, corresponding passwords, and data all unencrypted. That means that anyone between you and the remote server can, in principle, read you...
by tpyo kingg
Fri Feb 21, 2020 10:30 am
Forum: Beginners
Topic: IoT WebServer
Replies: 6
Views: 141

Re: IoT WebServer

I have just experience with Python and SPI. I don't know how to make Web Server and how to write the data to a database. How can I start with that, please? You might also look at Flask and sqlite . How many megabyes, gigabytes, or terabytes of data are you talking about and how complex are the reco...
by tpyo kingg
Fri Feb 21, 2020 8:32 am
Forum: Networking and servers
Topic: FTP Permissions
Replies: 5
Views: 136

Re: FTP Permissions

i have a webspace on a public webspace provider. A second, more serious problem there is the use of FTP instead of SFTP. Turn off FTP, it transmits the usernames, corresponding passwords, and data all unencrypted. The standard SFTP client has simplified implementation of chmod built in. Between tha...
by tpyo kingg
Thu Feb 20, 2020 1:00 pm
Forum: Beginners
Topic: SSH - Copy keys to another computer or create new keys?
Replies: 8
Views: 192

Re: SSH - Copy keys to another computer or create new keys?

That part does not need to be saved. The original idea with that was for it to be more a more recognizable than long strings for MD5 and, later, SHA256. In any those keys are to authenticate you to the server and that is all automated on the server side and your side of it would have no use of it. I...
by tpyo kingg
Thu Feb 20, 2020 6:18 am
Forum: Beginners
Topic: SSH - Copy keys to another computer or create new keys?
Replies: 8
Views: 192

Re: SSH - Copy keys to another computer or create new keys?

That works too. I guess my answer is colored by an intent to always be able to scale a little.

The 'optimal' method depends on the scale: one person, a small group, larger group, or very many people and Raspberry Pis.
by tpyo kingg
Thu Feb 20, 2020 5:44 am
Forum: Beginners
Topic: SSH - Copy keys to another computer or create new keys?
Replies: 8
Views: 192

Re: SSH - Copy keys to another computer or create new keys?

Usually the recommended practice is to make separate keys. However, if you are starting to look at large number of machines on either side of the connection you might want to look at SSH certificates instead. As for the SSH keys, you can make it easier to keep track of them by using the -C option to...
by tpyo kingg
Thu Feb 20, 2020 5:25 am
Forum: Advanced users
Topic: Permission denied (publickey).
Replies: 14
Views: 4033

Re: Permission denied (publickey).

Console is not remote access, so that is as it should be.

What problem are you trying to solve?
by tpyo kingg
Wed Feb 19, 2020 12:08 pm
Forum: Troubleshooting
Topic: Problems accessing SFTP on Pi 4B with latest full Raspian
Replies: 4
Views: 106

Re: Problems accessing SFTP on Pi 4B with latest full Raspian

I found a post that specified 3 options in sshd_conf to alter but to no avail after a full reboot What am I missing here ?? It seems that SSH only accepts key authentication. You probably missed a step or followed an incomplete or wrong post. Which three configuration directives did you change on t...
by tpyo kingg
Wed Feb 19, 2020 5:49 am
Forum: Advanced users
Topic: Permission denied (publickey).
Replies: 14
Views: 4033

Re: Permission denied (publickey).

and change these three things to "no" PasswordAuthentication no ChallengeResponseAuthentication no UsePAM no Change PasswordAuthentication and UsePAM back to yes. One way to do that is to shutdown the Raspberry Pi and then remove the microSD card and mount it using another GNU/Linux machine such as...
by tpyo kingg
Tue Feb 18, 2020 11:28 am
Forum: Beginners
Topic: Migrate RasPi Install of Apps & Configs?
Replies: 2
Views: 63

Re: Migrate RasPi Install of Apps & Configs?

You can get a list of the applications you have installed using dpkg and save the output: dpkg --get-selections Your system-wide configuration files will be in /etc/ and that's it except for the data. As for the data, that depends on the application. Some of the applications keep data in /var/ or so...
by tpyo kingg
Mon Feb 17, 2020 3:38 pm
Forum: Networking and servers
Topic: [ SOLVED ] how to verify internet connection
Replies: 16
Views: 316

Re: how to verify internet connection

The both run the reboot section if there are two ping errors. They just go about it in two different ways.

One thing to notice is that the comparison operators = and != are for strings. For integers, it would be -eq and -ne correspondingly. See "man test" for the full range of options.
by tpyo kingg
Mon Feb 17, 2020 3:07 pm
Forum: Networking and servers
Topic: [ SOLVED ] how to verify internet connection
Replies: 16
Views: 316

Re: how to verify internet connection

but what is the result of this : when for example the first ping is ok and the second does not succeed in the ping command -c2 ? If any packets get though it succeeds. $ ping -i 3 -c 2 -n 8.8.8.8; echo $? PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=54 time=19....
by tpyo kingg
Mon Feb 17, 2020 11:05 am
Forum: Networking and servers
Topic: [ SOLVED ] how to verify internet connection
Replies: 16
Views: 316

Re: how to verify internet connection

Nice. You might want the comparison to be greater than or equal to >= so that an exit code of 1 is covered also.
by tpyo kingg
Mon Feb 17, 2020 10:45 am
Forum: Networking and servers
Topic: [ SOLVED ] how to verify internet connection
Replies: 16
Views: 316

Re: how to verify internet connection

PS. If you're not overwhelmed by very long reference manuals, take a look at the section "Special Parameters" in the bash manual or the section "Special Parameters" in the POSIX shell manual:

Code: Select all

man bash
man sh
There are some other magic variables there that can come in handy from time to time.
by tpyo kingg
Mon Feb 17, 2020 10:39 am
Forum: Networking and servers
Topic: [ SOLVED ] how to verify internet connection
Replies: 16
Views: 316

Re: how to verify internet connection

Every program has an exit code. If the program succeeded it quietly produces an exit code of 0. If it fails, then it will be a number between 1 and 255. The $? is a shell variable which contains the exit code of the most recent action. ping -c 2 www.google.com echo $? ping -c 2 skajghlaksfblakhflahg...
by tpyo kingg
Sun Feb 16, 2020 2:38 pm
Forum: General discussion
Topic: WEB Server
Replies: 4
Views: 166

Re: WEB Server

Just to nitpick, basic web service would be provided just fine by installing Apache2 or nginx alone. Setting up a web server (HTTP/HTTPS) per se has nothing to do with any SQL servers such as MariaDB, Postgresql, sqllite, or MySQL. Though you could also program something yourself in Flask with Pytho...

Go to advanced search