ssh 서버 설정 및 클라이언트 연결방법 또는 ssh로 연결해서 쓸수 있는 무료 linux 계정을 얻을 수 있는 사이트를 알려주세요^

hohheup의 이미지

제 android에서 emacs로 org-mode를 쓰고 싶으나, native로 돌아가는 emacs를 찾을 수 없고 나중에 나온다 하더라도 속도가 좀 느릴것 같고,

https://www.emacswiki.org/emacs-test/EmacsOnAndroid
를 참조하니 현재 쓸 수 있는 방법중 android에서 ssh로 연결하는 것이 가장 쾌적할 듯 합니다.

그래서 제 debian에 sshd를 설치하여 android에서 ssh로 연결하려고
https://wiki.debian.org/SSH 를 참조하여 제 debian에 sshd를 설치했으나

로그인 테스트하는 부분인
ssh $remote_user@$remote_host

실제입력
$ ssh $my_local_username$127.0.0.1 했으나 로그인이 되지 않습니다.
어디를 어떻게 해야 하는지 모르겠네요. 다른 한글 사이트를 뒤져 봐도 이 사이트에서 설명한것 외 다른 특별한건 없는것 같던데 왜 안되는지 모르겠습니다.

아니면 ssh로 연결해서 쓸 수 있는 linux 계정을 얻을 수 있는 사이트가 있나요?

김정균의 이미지

$ ssh $my_local_username$127.0.0.1

이걸 어디서 했다는 건가요?

그리고 일단 접속 명령도 틀렸습니다. ssh 접속은 "ssh USER@CONNECT_SERVER" 입니다. 또는 "ssh -l USER CONNECT_SERVER"로 하시면 됩니다.

그리고, 어디서 했냐고 질문한 것은 127.0.0.1 은 자기 자신을 의미한 것입니다. android에서는 당연히 이 주소로 접근이 안됩니다. debian machine에서 한 것이라면 명령어가 잘 못 사용하신 것 같습니다. (제대로 적어 주셨다는 가정하에 말이죠.)

hohheup의 이미지

127.0.0.1한것은 sshd설정한것이 잘된것인지 확인하기 위해서 debian machine에서 한것 맞습니다.
그리고 명령어는 제가 여기에 잘못 적었네요. 실제 한 명령어는
"ssh username@127.0.0.1" 이렇게 했습니다.

문의사항을 구체적으로 적겠습니다
접속할 때 적는 username을 따로 만들어야 하는지 아니면 debian machine에 있는 username을 그대로 쓸 수 있는지 모르겠습니다. 테스트할때는 debian machine에 있는 username을 그대로 썼습니다.

그리고 local에서 되는지 테스트해보려고 127.0.0.1을 썼는데 이게 원래 안되는건가요?
테스트할때도 차체컴에서는 안되고 외부에서 접속해야 하는건가요?

익명 사용자의 이미지

그러니까 질문자분의 상황은, 안드로이드 휴대폰에서 ssh를 통해 리눅스 머신에 접근하기 위해서 컴퓨터에 ssh 서버를 설치했고, 이걸 테스트해 보기 위해서 localhost로 접속이 되는지를 알아 보신 거죠? ssh로 접근할 때 사용자는 시스템에 있는 사용자여야 하기 때문에 현재 사용자 이름이 username이라면 당연히 username을 써야 하고, 127.0.0.1을 썼다면 접속이 되어야 합니다. 접속이 안 된다면 구체적인 오류 메시지를 편집하지 말고 그대로 붙여 넣어 주세요.

그런데 폰에 있는 파일을 emacs로 편집하고 싶으신 건가요, 아니면 컴퓨터에 있는 파일을 폰으로 emacs로 편집하고 싶으신 건가요? 만약 전자에 해당한다면 파일을 편집하기 전과 편집한 후에 일일이 복사해 주어야 합니다.

hohheup의 이미지

컴퓨터(ssh 서버)에 있는 파일을 폰에서 emacs로 편집(org-mode의 사용을 위해)하고 싶습니다.

openssh-client와 openssh-server를 설치하고 처음 로그인 시도시

# ssh username@127.0.0.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
06:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:2
remove with: ssh-keygen -f "/root/.ssh/known_hosts" -R 127.0.0.1
ECDSA host key for 127.0.0.1 has changed and you have requested strict checking.
Host key verification failed

이런 메시지가 뜨면서 실패
그래서

# ssh-keygen -f "/root/.ssh/known_hosts" -R 127.0.0.1

# Host 127.0.0.1 found: line 2 type ECDSA
/root/.ssh/known_hosts updated.
Original contents retained as /root/.ssh/known_hosts.old

다시 로그인 시도
# ssh username@127.0.0.1
했더니

The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established.
ECDSA key fingerprint is 06:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '127.0.0.1' (ECDSA) to the list of known hosts.
username@127.0.0.1's password:
Permission denied, please try again.
username@127.0.0.1's password:
Permission denied, please try again.
username@127.0.0.1's password:
Permission denied (publickey,password).

여기 password 치는 부분에서 분명 그 username의 패스워드 맞게 했는데 안돼네요. 세번 다 안됨

패스워드 관련해서 설정하는게 따로 있나요? 아님 로컬에서 로그인해서 그런가요?

익명 사용자의 이미지

혹시 root로 ssh 연결을 시도하신 건가요? 외부에 ssh가 열려있을 때 루트가 털리는 것을 막기 위해서 대부분 기본 설정에서 root로 ssh에 접근하는 것을 막고 있습니다.

hohheup의 이미지

자주 쓰는 아이디가 있는데 비슷해서 username을 잘못 적었네요.
username바꾸니까 접속됩니다.
도움을 주셔서 감사합니다^^

세벌의 이미지

ssh로 연결해서 쓸수 있는 무료 linux 계정을 얻을 수 있는 사이트
nuxinfo.net
계정 받는 방법 : 관리자가 계정신청 받을 때 신청하면 됨. 문제는 신청받는 기간이 관리자 마음대로 라는 거.
세벌사랑넷 홈페이지를 그곳 서버에 만들어서 쓰고 있지요. 세벌사랑넷 내용은 제가 만들어가고 있고요.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.