New answers tagged

0

In my case the error was due to the process was running. Try the next: $ sudo service vsftpd restart The service should restart with the new configuration parameters, if any.


0

Start monitoring the server's log file tail -f /var/log/auth.log Add -v to get a verbose output at the client end ssh user@computerB -v This might give you more details about the cause. if the rsa and dsa keys are missing on the server, fix them by: ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_rsa_key ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key Note: ...


1

By default there is no authentication, so long as the client uses the apropriate socket number the server will accept the connection. look as SSL and SASL for some examples of authentication.


2

A redirection like 3>&1 duplicates an existing file descriptor: this takes the same open file (same file, same flags, same position, etc.) and plugs it onto another “output port” of the program (another file descriptor number). (More precisely, this creates a new file descriptor that points to the same file description, but we don't) >&1 ...


6

Use >&N. It's portable and as you saw, actually works with sockets. The only reason you would ever use /proc/self/fd is you are running a program that expects a file name and can't be told to use an already open file descriptor. E.g. the <(cmd...) redirection uses that, since almost all command line utilities can open a file pointed to by name, ...


0

Since OpenSSH 7.2, which was released in February 2016, %i is now supported in ControlPath expression, which expands to numeric UID. For example, ControlPath /run/user/%i/master-%l-%r@%h:%p Alternatively, if newer OpenSSH is not available, you can consider using /dev/shm for storing temporary data. It's world-writeable and is always tmpfs. Although it's ...


4

When a program has connections, and after you kill the process, a timeout can be defined for the port to linger. The involved kernel variables to change that timeouts are: From: Linux TCP Tuning /proc/sys/net/ipv4/tcp_tw_reuse - This allows reusing sockets in TIME_WAIT state for new connections when it is safe from protocol viewpoint. Default ...


0

netcat-openbsd supports connecting to UNIX-domain sockets. Using this you can connect to either a UNIX-domain stream socket or a UNIX-domain datagram socket, and therefore you have to tell the socket's type to netcat. for example, /dev/log file in Linux is a UNIX-domain datagram socket socket, thus nc -U /dev/log won't work. Instead use nc -uU /dev/log. ...



Top 50 recent answers are included