iis6 FTP 서버 passive모드 포트 열기(windows 2003 server)
By indes's work place | 2017년 8월 1일 |
1. Open the Control Panel and activate the Windows Firewall control.2. Click on the Advanced tab, select the network interface that the FTP is bound to and make sure that this option is checked to enable the firewall for this interface. 3. Click on the "Settings..." button.4. Click on the Services tab and CLEAR the check box for the "FTP Server" option. I know this makes no sense, but neither does
리눅스에서 .netrc 파일을 이용한 ftp 자동 로그인
By 반달가면 | 2018년 5월 8일 |
같은 LAN에 붙어 있는 ftp 서버에 자주 접속해서 뭔가 작업을 할 경우가 있어서 접속할 때마다 사용자 계정과 암호를 입력하기가 번거로운 관계로, .netrc 파일에 로그인 정보를 저장해서 자동으로 로그인되도록 했다. .netrc 파일은 홈 디렉토리(~/)에 둔다. 없다면 새로 만들면 되겠다. # .netrc 파일 편집 vi ~/.netrc 파일 내용은 아래와 같은 형식으로 구성된다. machine [서버 주소] login [사용자 계정] password [암호] 예를 들어 서버 주소 ftp.my_server.net, 사용자 계정 john, 접속암호 my_pwd인 경우 .netrc 파일에 아래와 같은 형태로 입력하고 저장하면 되겠다. machine ftp.my_server
C# - FileStream 다룰 때, 한글 관련 팁
By 이것저것 | 2017년 2월 23일 |
파일을 다룰 때, 한글이 깨지는 현상이 종종 발생합니다. 구글 어스의 Kml 파일을 예로 들어보죠. 1234567FileStream Stream = new FileStream(@"C:\test.kml", FileMode.Open, FileAccess.ReadWrite);StreamReader Reader = new StreamReader(Stream, Encoding.Default, true); String getReader = Reader.ReadToEnd(); byte[] b = System.Text.Encoding.Default.GetBytes(getReader);Stream.Write(b, 0, getReader.Length);Colored by Color Scriptercs 중요한 건 빨간
리눅스에서 anonymous ftp 접속 허용(vsftpd)
By 반달가면 | 2020년 3월 17일 |
리눅스에서 vsftpd를 이용해서 ftp 서버를 운영할 때 anonymous 접속을 설정하는 방법이다. 데비안/우분투 계열 배포판 기준이다. 우선 anonymous 접속에 대응되는 루트 디렉토리를 만들자. # /var/pub/anon_ftp_root/ 생성 sudo mkdir -p /var/pub/anon_ftp_root/ 이제 vsftpd 설정파일을 편집한다. 통상 /etc/vsftpd.conf 파일이다. # vsftpd 설정 파일 편집 sudo vi /etc/vsftpd.conf 설정 파일 내용을 아래와 같이 추가/편집해 주자. # anonymous 접속 허용 anonymous_enable=YES # anonymous 접속에 대응되는 루트 디렉토리 anon_r