pure-ftpd Connection refused localhost on high sierra
When I try connect my local FTP server I have received the following error message:
$ ftp localhost
ftp: connect to address ::1: Connection refused
ftp: Trying 127.0.0.1 ...
ftp: connect to address 127.0.0.1: Connection refused
ftp: no response from host
I have installed pure-ftpd on my High Sierra MacOS just like this:
$ brew install pure-ftpd
And after this I have started it:
$ brew services list | grep ftp
proftpd stopped
pure-ftpd started alexandre1202 /Users/alexandre1202/Library/LaunchAgents/homebrew.mxcl.pure-ftpd.plist
vsftpd stopped
I also have tried with vsftpd and profptd but the issue is the same.
As we can see above the service is started but when I also have checked local connections and 21 port is not ESTABLISHED or LISTEN
# netstat -f inet -tan | grep 21
In addition I have checked by any ftp server on system
alemacbookpro:~ root# ps aux | grep ftp
root 60696 0.0 0.0 4279600 0 s002 R 6:22PM 0:00.00 grep ftp
alemacbookpro:~ root#
And if I try connect using the following, we can see that there is no LISTEN service:
# telnet localhost 21
Trying ::1...
Connection failed: Connection refused
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
I apreciate any help to figure out why I can not use FTP server locally.
ftp connection macos-highsierra
add a comment |
When I try connect my local FTP server I have received the following error message:
$ ftp localhost
ftp: connect to address ::1: Connection refused
ftp: Trying 127.0.0.1 ...
ftp: connect to address 127.0.0.1: Connection refused
ftp: no response from host
I have installed pure-ftpd on my High Sierra MacOS just like this:
$ brew install pure-ftpd
And after this I have started it:
$ brew services list | grep ftp
proftpd stopped
pure-ftpd started alexandre1202 /Users/alexandre1202/Library/LaunchAgents/homebrew.mxcl.pure-ftpd.plist
vsftpd stopped
I also have tried with vsftpd and profptd but the issue is the same.
As we can see above the service is started but when I also have checked local connections and 21 port is not ESTABLISHED or LISTEN
# netstat -f inet -tan | grep 21
In addition I have checked by any ftp server on system
alemacbookpro:~ root# ps aux | grep ftp
root 60696 0.0 0.0 4279600 0 s002 R 6:22PM 0:00.00 grep ftp
alemacbookpro:~ root#
And if I try connect using the following, we can see that there is no LISTEN service:
# telnet localhost 21
Trying ::1...
Connection failed: Connection refused
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
I apreciate any help to figure out why I can not use FTP server locally.
ftp connection macos-highsierra
add a comment |
When I try connect my local FTP server I have received the following error message:
$ ftp localhost
ftp: connect to address ::1: Connection refused
ftp: Trying 127.0.0.1 ...
ftp: connect to address 127.0.0.1: Connection refused
ftp: no response from host
I have installed pure-ftpd on my High Sierra MacOS just like this:
$ brew install pure-ftpd
And after this I have started it:
$ brew services list | grep ftp
proftpd stopped
pure-ftpd started alexandre1202 /Users/alexandre1202/Library/LaunchAgents/homebrew.mxcl.pure-ftpd.plist
vsftpd stopped
I also have tried with vsftpd and profptd but the issue is the same.
As we can see above the service is started but when I also have checked local connections and 21 port is not ESTABLISHED or LISTEN
# netstat -f inet -tan | grep 21
In addition I have checked by any ftp server on system
alemacbookpro:~ root# ps aux | grep ftp
root 60696 0.0 0.0 4279600 0 s002 R 6:22PM 0:00.00 grep ftp
alemacbookpro:~ root#
And if I try connect using the following, we can see that there is no LISTEN service:
# telnet localhost 21
Trying ::1...
Connection failed: Connection refused
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
I apreciate any help to figure out why I can not use FTP server locally.
ftp connection macos-highsierra
When I try connect my local FTP server I have received the following error message:
$ ftp localhost
ftp: connect to address ::1: Connection refused
ftp: Trying 127.0.0.1 ...
ftp: connect to address 127.0.0.1: Connection refused
ftp: no response from host
I have installed pure-ftpd on my High Sierra MacOS just like this:
$ brew install pure-ftpd
And after this I have started it:
$ brew services list | grep ftp
proftpd stopped
pure-ftpd started alexandre1202 /Users/alexandre1202/Library/LaunchAgents/homebrew.mxcl.pure-ftpd.plist
vsftpd stopped
I also have tried with vsftpd and profptd but the issue is the same.
As we can see above the service is started but when I also have checked local connections and 21 port is not ESTABLISHED or LISTEN
# netstat -f inet -tan | grep 21
In addition I have checked by any ftp server on system
alemacbookpro:~ root# ps aux | grep ftp
root 60696 0.0 0.0 4279600 0 s002 R 6:22PM 0:00.00 grep ftp
alemacbookpro:~ root#
And if I try connect using the following, we can see that there is no LISTEN service:
# telnet localhost 21
Trying ::1...
Connection failed: Connection refused
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
I apreciate any help to figure out why I can not use FTP server locally.
ftp connection macos-highsierra
ftp connection macos-highsierra
asked Jan 26 at 20:28
Alexandre BarbosaAlexandre Barbosa
63
63
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Problem has fixed after the following steps:
1) I have stopped the service
$ brew services stop pure-ftpd
2) I have remove to service
$ brew remove pure-ftpd
3) I have updated brew
$ brew upgrade
4) I have cleaned it
$ brew cleanup
5) I have reinstalled it
$ brew install pure-ftpd
6) I have created the /etc/pam.d/pure-ftpd following lines using root privilege:
# pure-ftpd: auth account password session
auth required pam_opendirectory.so
account required pam_permit.so
password required pam_deny.so
session required pam_permit.so
7) Set pam configuration
sudo /usr/local/sbin/pure-ftpd -lpam -B
8) I have restart the service
$ brew services restart pure-ftpd
9) And finally the connection has successfully!
$ ftp localhost
Trying ::1...
Connected to localhost.
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 20:42. Server port: 21.
220 You will be disconnected after 15 minutes of inactivity.
Name (localhost:alexandre1202):
331 User alexandre1202 OK. Password required
Password:
230 OK. Current directory is /Users/alexandre1202
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1398800%2fpure-ftpd-connection-refused-localhost-on-high-sierra%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Problem has fixed after the following steps:
1) I have stopped the service
$ brew services stop pure-ftpd
2) I have remove to service
$ brew remove pure-ftpd
3) I have updated brew
$ brew upgrade
4) I have cleaned it
$ brew cleanup
5) I have reinstalled it
$ brew install pure-ftpd
6) I have created the /etc/pam.d/pure-ftpd following lines using root privilege:
# pure-ftpd: auth account password session
auth required pam_opendirectory.so
account required pam_permit.so
password required pam_deny.so
session required pam_permit.so
7) Set pam configuration
sudo /usr/local/sbin/pure-ftpd -lpam -B
8) I have restart the service
$ brew services restart pure-ftpd
9) And finally the connection has successfully!
$ ftp localhost
Trying ::1...
Connected to localhost.
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 20:42. Server port: 21.
220 You will be disconnected after 15 minutes of inactivity.
Name (localhost:alexandre1202):
331 User alexandre1202 OK. Password required
Password:
230 OK. Current directory is /Users/alexandre1202
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
add a comment |
Problem has fixed after the following steps:
1) I have stopped the service
$ brew services stop pure-ftpd
2) I have remove to service
$ brew remove pure-ftpd
3) I have updated brew
$ brew upgrade
4) I have cleaned it
$ brew cleanup
5) I have reinstalled it
$ brew install pure-ftpd
6) I have created the /etc/pam.d/pure-ftpd following lines using root privilege:
# pure-ftpd: auth account password session
auth required pam_opendirectory.so
account required pam_permit.so
password required pam_deny.so
session required pam_permit.so
7) Set pam configuration
sudo /usr/local/sbin/pure-ftpd -lpam -B
8) I have restart the service
$ brew services restart pure-ftpd
9) And finally the connection has successfully!
$ ftp localhost
Trying ::1...
Connected to localhost.
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 20:42. Server port: 21.
220 You will be disconnected after 15 minutes of inactivity.
Name (localhost:alexandre1202):
331 User alexandre1202 OK. Password required
Password:
230 OK. Current directory is /Users/alexandre1202
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
add a comment |
Problem has fixed after the following steps:
1) I have stopped the service
$ brew services stop pure-ftpd
2) I have remove to service
$ brew remove pure-ftpd
3) I have updated brew
$ brew upgrade
4) I have cleaned it
$ brew cleanup
5) I have reinstalled it
$ brew install pure-ftpd
6) I have created the /etc/pam.d/pure-ftpd following lines using root privilege:
# pure-ftpd: auth account password session
auth required pam_opendirectory.so
account required pam_permit.so
password required pam_deny.so
session required pam_permit.so
7) Set pam configuration
sudo /usr/local/sbin/pure-ftpd -lpam -B
8) I have restart the service
$ brew services restart pure-ftpd
9) And finally the connection has successfully!
$ ftp localhost
Trying ::1...
Connected to localhost.
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 20:42. Server port: 21.
220 You will be disconnected after 15 minutes of inactivity.
Name (localhost:alexandre1202):
331 User alexandre1202 OK. Password required
Password:
230 OK. Current directory is /Users/alexandre1202
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
Problem has fixed after the following steps:
1) I have stopped the service
$ brew services stop pure-ftpd
2) I have remove to service
$ brew remove pure-ftpd
3) I have updated brew
$ brew upgrade
4) I have cleaned it
$ brew cleanup
5) I have reinstalled it
$ brew install pure-ftpd
6) I have created the /etc/pam.d/pure-ftpd following lines using root privilege:
# pure-ftpd: auth account password session
auth required pam_opendirectory.so
account required pam_permit.so
password required pam_deny.so
session required pam_permit.so
7) Set pam configuration
sudo /usr/local/sbin/pure-ftpd -lpam -B
8) I have restart the service
$ brew services restart pure-ftpd
9) And finally the connection has successfully!
$ ftp localhost
Trying ::1...
Connected to localhost.
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 20:42. Server port: 21.
220 You will be disconnected after 15 minutes of inactivity.
Name (localhost:alexandre1202):
331 User alexandre1202 OK. Password required
Password:
230 OK. Current directory is /Users/alexandre1202
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
edited Feb 19 at 12:58
answered Jan 26 at 22:48
Alexandre BarbosaAlexandre Barbosa
63
63
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1398800%2fpure-ftpd-connection-refused-localhost-on-high-sierra%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown