LDAP user to find: yigarash [auth.php:186]
LDAP Server: ldap://133.100.109.234:389 [auth.php:189]
LDAP Filter: (&(uid=yigarash)(objectClass=posixAccount)) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: ou=People,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(uid=yigarash)(objectClass=posixAccount)) [auth.php:203]
LDAP search found single result ! [auth.php:225]
LDAP group search: Success [auth.php:266]
LDAP search at: ou=Group,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(objectClass=posixGroup)(|(gidNumber=1125)(memberUID=yigarash))) [auth.php:267]
LDAP usergroup: www [auth.php:286]
LDAP usergroup: yigarash [auth.php:286]
LDAP usergroup: yonedacvs [auth.php:286]
LDAP usergroup: venture [auth.php:286]
LDAP usergroup: mac [auth.php:286]
LDAP usergroup: qbic [auth.php:286]
LDAP user to find: yigarash [auth.php:186]
LDAP Server: ldap://133.100.109.234:389 [auth.php:189]
LDAP Filter: (&(uid=yigarash)(objectClass=posixAccount)) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: ou=People,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(uid=yigarash)(objectClass=posixAccount)) [auth.php:203]
LDAP search found single result ! [auth.php:225]
LDAP group search: Success [auth.php:266]
LDAP search at: ou=Group,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(objectClass=posixGroup)(|(gidNumber=1125)(memberUID=yigarash))) [auth.php:267]
LDAP usergroup: www [auth.php:286]
LDAP usergroup: yigarash [auth.php:286]
LDAP usergroup: yonedacvs [auth.php:286]
LDAP usergroup: venture [auth.php:286]
LDAP usergroup: mac [auth.php:286]
LDAP usergroup: qbic [auth.php:286]
LDAP user to find: yigarash [auth.php:186]
LDAP Server: ldap://133.100.109.234:389 [auth.php:189]
LDAP Filter: (&(uid=yigarash)(objectClass=posixAccount)) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: ou=People,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(uid=yigarash)(objectClass=posixAccount)) [auth.php:203]
LDAP search found single result ! [auth.php:225]
LDAP group search: Success [auth.php:266]
LDAP search at: ou=Group,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(objectClass=posixGroup)(|(gidNumber=1125)(memberUID=yigarash))) [auth.php:267]
LDAP usergroup: www [auth.php:286]
LDAP usergroup: yigarash [auth.php:286]
LDAP usergroup: yonedacvs [auth.php:286]
LDAP usergroup: venture [auth.php:286]
LDAP usergroup: mac [auth.php:286]
LDAP usergroup: qbic [auth.php:286]
LDAP user to find: yigarash [auth.php:186]
LDAP Server: ldap://133.100.109.234:389 [auth.php:189]
LDAP Filter: (&(uid=yigarash)(objectClass=posixAccount)) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: ou=People,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(uid=yigarash)(objectClass=posixAccount)) [auth.php:203]
LDAP search found single result ! [auth.php:225]
LDAP group search: Success [auth.php:266]
LDAP search at: ou=Group,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(objectClass=posixGroup)(|(gidNumber=1125)(memberUID=yigarash))) [auth.php:267]
LDAP usergroup: www [auth.php:286]
LDAP usergroup: yigarash [auth.php:286]
LDAP usergroup: yonedacvs [auth.php:286]
LDAP usergroup: venture [auth.php:286]
LDAP usergroup: mac [auth.php:286]
LDAP usergroup: qbic [auth.php:286]
LDAP user to find: yigarash [auth.php:186]
LDAP Server: ldap://133.100.109.234:389 [auth.php:189]
LDAP Filter: (&(uid=yigarash)(objectClass=posixAccount)) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: ou=People,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(uid=yigarash)(objectClass=posixAccount)) [auth.php:203]
LDAP search found single result ! [auth.php:225]
LDAP group search: Success [auth.php:266]
LDAP search at: ou=Group,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(objectClass=posixGroup)(|(gidNumber=1125)(memberUID=yigarash))) [auth.php:267]
LDAP usergroup: www [auth.php:286]
LDAP usergroup: yigarash [auth.php:286]
LDAP usergroup: yonedacvs [auth.php:286]
LDAP usergroup: venture [auth.php:286]
LDAP usergroup: mac [auth.php:286]
LDAP usergroup: qbic [auth.php:286]
LDAP user to find: yigarash [auth.php:186]
LDAP Server: ldap://133.100.109.234:389 [auth.php:189]
LDAP Filter: (&(uid=yigarash)(objectClass=posixAccount)) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: ou=People,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(uid=yigarash)(objectClass=posixAccount)) [auth.php:203]
LDAP search found single result ! [auth.php:225]
LDAP group search: Success [auth.php:266]
LDAP search at: ou=Group,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(objectClass=posixGroup)(|(gidNumber=1125)(memberUID=yigarash))) [auth.php:267]
LDAP usergroup: www [auth.php:286]
LDAP usergroup: yigarash [auth.php:286]
LDAP usergroup: yonedacvs [auth.php:286]
LDAP usergroup: venture [auth.php:286]
LDAP usergroup: mac [auth.php:286]
LDAP usergroup: qbic [auth.php:286]
LDAP user to find: yigarash [auth.php:186]
LDAP Server: ldap://133.100.109.234:389 [auth.php:189]
LDAP Filter: (&(uid=yigarash)(objectClass=posixAccount)) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: ou=People,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(uid=yigarash)(objectClass=posixAccount)) [auth.php:203]
LDAP search found single result ! [auth.php:225]
LDAP group search: Success [auth.php:266]
LDAP search at: ou=Group,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(objectClass=posixGroup)(|(gidNumber=1125)(memberUID=yigarash))) [auth.php:267]
LDAP usergroup: www [auth.php:286]
LDAP usergroup: yigarash [auth.php:286]
LDAP usergroup: yonedacvs [auth.php:286]
LDAP usergroup: venture [auth.php:286]
LDAP usergroup: mac [auth.php:286]
LDAP usergroup: qbic [auth.php:286]
LDAP user to find: [auth.php:186]
LDAP Server: ldap://133.100.109.234:389 [auth.php:189]
LDAP Filter: (&(uid=)(objectClass=posixAccount)) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: ou=People,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(uid=)(objectClass=posixAccount)) [auth.php:203]
LDAP search returned 0 results while it should return 1! [auth.php:217]
LDAP user to find: [auth.php:186]
LDAP Server: ldap://133.100.109.234:389 [auth.php:189]
LDAP Filter: (&(uid=)(objectClass=posixAccount)) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: ou=People,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(uid=)(objectClass=posixAccount)) [auth.php:203]
LDAP search returned 0 results while it should return 1! [auth.php:217]
LDAP user to find: [auth.php:186]
LDAP Server: ldap://133.100.109.234:389 [auth.php:189]
LDAP Filter: (&(uid=)(objectClass=posixAccount)) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: ou=People,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(uid=)(objectClass=posixAccount)) [auth.php:203]
LDAP search returned 0 results while it should return 1! [auth.php:217]
LDAP user to find: yigarash [auth.php:186]
LDAP Server: ldap://133.100.109.234:389 [auth.php:189]
LDAP Filter: (&(uid=yigarash)(objectClass=posixAccount)) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: ou=People,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(uid=yigarash)(objectClass=posixAccount)) [auth.php:203]
LDAP search found single result ! [auth.php:225]
LDAP group search: Success [auth.php:266]
LDAP search at: ou=Group,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(objectClass=posixGroup)(|(gidNumber=1125)(memberUID=yigarash))) [auth.php:267]
LDAP usergroup: www [auth.php:286]
LDAP usergroup: yigarash [auth.php:286]
LDAP usergroup: yonedacvs [auth.php:286]
LDAP usergroup: venture [auth.php:286]
LDAP usergroup: mac [auth.php:286]
LDAP usergroup: qbic [auth.php:286]
LDAP user to find: yigarash [auth.php:186]
LDAP Server: ldap://133.100.109.234:389 [auth.php:189]
LDAP Filter: (&(uid=yigarash)(objectClass=posixAccount)) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: ou=People,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(uid=yigarash)(objectClass=posixAccount)) [auth.php:203]
LDAP search found single result ! [auth.php:225]
LDAP group search: Success [auth.php:266]
LDAP search at: ou=Group,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(objectClass=posixGroup)(|(gidNumber=1125)(memberUID=yigarash))) [auth.php:267]
LDAP usergroup: www [auth.php:286]
LDAP usergroup: yigarash [auth.php:286]
LDAP usergroup: yonedacvs [auth.php:286]
LDAP usergroup: venture [auth.php:286]
LDAP usergroup: mac [auth.php:286]
LDAP usergroup: qbic [auth.php:286]
LDAP user to find: yigarash [auth.php:186]
LDAP Server: ldap://133.100.109.234:389 [auth.php:189]
LDAP Filter: (&(uid=yigarash)(objectClass=posixAccount)) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: ou=People,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(uid=yigarash)(objectClass=posixAccount)) [auth.php:203]
LDAP search found single result ! [auth.php:225]
LDAP group search: Success [auth.php:266]
LDAP search at: ou=Group,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(objectClass=posixGroup)(|(gidNumber=1125)(memberUID=yigarash))) [auth.php:267]
LDAP usergroup: www [auth.php:286]
LDAP usergroup: yigarash [auth.php:286]
LDAP usergroup: yonedacvs [auth.php:286]
LDAP usergroup: venture [auth.php:286]
LDAP usergroup: mac [auth.php:286]
LDAP usergroup: qbic [auth.php:286]
LDAP user to find: yigarash [auth.php:186]
LDAP Server: ldap://133.100.109.234:389 [auth.php:189]
LDAP Filter: (&(uid=yigarash)(objectClass=posixAccount)) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: ou=People,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(uid=yigarash)(objectClass=posixAccount)) [auth.php:203]
LDAP search found single result ! [auth.php:225]
LDAP group search: Success [auth.php:266]
LDAP search at: ou=Group,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(objectClass=posixGroup)(|(gidNumber=1125)(memberUID=yigarash))) [auth.php:267]
LDAP usergroup: www [auth.php:286]
LDAP usergroup: yigarash [auth.php:286]
LDAP usergroup: yonedacvs [auth.php:286]
LDAP usergroup: venture [auth.php:286]
LDAP usergroup: mac [auth.php:286]
LDAP usergroup: qbic [auth.php:286]
LDAP user to find: yigarash [auth.php:186]
LDAP Server: ldap://133.100.109.234:389 [auth.php:189]
LDAP Filter: (&(uid=yigarash)(objectClass=posixAccount)) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: ou=People,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(uid=yigarash)(objectClass=posixAccount)) [auth.php:203]
LDAP search found single result ! [auth.php:225]
LDAP group search: Success [auth.php:266]
LDAP search at: ou=Group,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(objectClass=posixGroup)(|(gidNumber=1125)(memberUID=yigarash))) [auth.php:267]
LDAP usergroup: www [auth.php:286]
LDAP usergroup: yigarash [auth.php:286]
LDAP usergroup: yonedacvs [auth.php:286]
LDAP usergroup: venture [auth.php:286]
LDAP usergroup: mac [auth.php:286]
LDAP usergroup: qbic [auth.php:286]
LDAP user to find: [auth.php:186]
LDAP Server: ldap://133.100.109.234:389 [auth.php:189]
LDAP Filter: (&(uid=)(objectClass=posixAccount)) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: ou=People,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(uid=)(objectClass=posixAccount)) [auth.php:203]
LDAP search returned 0 results while it should return 1! [auth.php:217]
LDAP user to find: [auth.php:186]
LDAP Server: ldap://133.100.109.234:389 [auth.php:189]
LDAP Filter: (&(uid=)(objectClass=posixAccount)) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: ou=People,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(uid=)(objectClass=posixAccount)) [auth.php:203]
LDAP search returned 0 results while it should return 1! [auth.php:217]
LDAP user to find: [auth.php:186]
LDAP Server: ldap://133.100.109.234:389 [auth.php:189]
LDAP Filter: (&(uid=)(objectClass=posixAccount)) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: ou=People,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(uid=)(objectClass=posixAccount)) [auth.php:203]
LDAP search returned 0 results while it should return 1! [auth.php:217]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
macos_x [2016/10/12 09:55]
yigarash [7.sshでの接続がうまくいったかの確認方法]
macos_x [2016/11/03 10:44] (current)
yigarash
Line 1: Line 1:
 +MacOS XからUnixにssh接続する場合は、公開鍵方式を使う。
 +参考リンク [[http://​www3.econ.fukuoka-u.ac.jp/​dokuwiki/​doku.php?​id=how_to_setup_ssh|Windows環境から経済学部ホストへSSH version2]]で接続する手順
 +
 +以下の手順における用語は次の通り\\ ​
 +ログインされる側のサーバを リモートホストと呼ぶ。\\ ​
 +ログインする側のマシンを ローカルホストと呼ぶ。\\ ​
 +
 +なお、OpenSSHの脆弱性が発見され、学外からは__2015年以前の鍵は使えなくなっています__。2016年以降は、鍵の再作成を行ってください。
 +====== 手順 ======
 +
 + ===== 1.ローカルホスト(Mac)に公開鍵をいれる箱(ディリクトリ)を作る。 =====
 +
 + アプリケーションの中のユーティリティの中に、ターミナルがあるので起動させてください。
 +
 +{{:​application_1.png|}}{{:​utirity_1.png|}}
 +
 +
 +
 +
 +黒い画面が出てくるので、次のコマンドラインを打ち込む
 +<​code>​mkdir .ssh</​code>​
 +
 +{{:​terminal-2_1.png|}}
 +
 +
 +このコマンドにより、Macに .sshというディリクトリが作られます。
 +(.sshは、今回はホームディレクトリに置きますが、設定ファイル扱いになり通常では、見ることができません)
 +
 +===== 2.ローカルホスト(Mac) で公開鍵と秘密鍵を作成する。 =====
 +
 +
 +次のコマンドを打ち込む。
 +
 +<​code>​ssh-keygen -t dsa</​code>​
 +
 +するとしばらく公開鍵・秘密鍵のペアを生成するのに時間がかかったあと、
 +
 +<​code>​Enter file in which to save the key (/​Users/​yigarash/​.ssh/​id_dsa):</​code>​
 +
 +と聞いてくるので、そのまま、Return keyをおす。
 +さらに、
 +
 +<​code>​Enter passphrase (empty for no passphrase):</​code>​
 +
 +と聞いてきますが、
 +そのままReturn keyをおしてください。
 +さらに確認にもう一度聞いてきますが、そのままReturn keyをおしてください。
 +
 +これで、/​Users/​yigarash/​.ssh/​id_dsa , /​Users/​yigarash/​.ssh/​id_dsa.pub
 +という2つのファイル(公開鍵と秘密鍵)ができ上がる。
 +
 +id_dsa.pubのほうは公開鍵。id_dsaの方は秘密鍵である。
 +
 +===== 3.公開鍵をリモートホストに貼付ける作業を行う。 =====
 +
 +<​code>​cd .ssh</​code>​
 +
 +で作業ディレクトリを移動してから
 +リモートホスト(Unix)に繋ぐため以下のコマンドを打ち込む
 +
 +<​code>​ftp ユーザ名@ftp.econ.fukuoka-u.ac.jp</​code>​
 +
 +-> パスワードを聞かれるので、自分の登録している経済学部サーバのパスワードを打つ
 +
 +<​code>​User ユーザー名 logged in.</​code>​
 +
 +とターミナルに表示されればftp接続は成功です。
 +
 +===== 4.サーバ側の自分のディレクトリに.sshを作るために次のコマンドを打つ。 =====
 +
 +<​code>​mkdir .ssh</​code>​
 +
 +===== 5.公開鍵をサーバ側に送信する =====
 +
 +ローカルホスト(Mac)で作った公開鍵を、サーバ側に送信するために、次のコマンドを打つ
 +
 +<​code>​append id_dsa.pub .ssh/​authorized_keys</​code>​
 +
 +このコマンドによりリモートホストの.ssh/​authorized_keysに
 +ローカルホストで作られた(id_dsa.pub)が書き加えられた。
 +
 +===== 6.ftp接続を切る =====
 +次のコマンドを打つ
 +<​code>​quit</​code>​
 +
 +===== 7.sshでの接続がうまくいったかの確認方法 =====
 +
 +次のコマンドを打つ
 +
 +<​code>​ssh ユーザー名@ftp.econ.fukuoka-u.ac.jp</​code>​
 +と打ち込み
 +
 +**Welcome to FreeBSD!**
 +
 +とでたら成功である。
 +
 +logoutするにはexitを使ってください。
  
LDAP user to find: yigarash [auth.php:186]
LDAP Server: ldap://133.100.109.234:389 [auth.php:189]
LDAP Filter: (&(uid=yigarash)(objectClass=posixAccount)) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: ou=People,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(uid=yigarash)(objectClass=posixAccount)) [auth.php:203]
LDAP search found single result ! [auth.php:225]
LDAP group search: Success [auth.php:266]
LDAP search at: ou=Group,dc=econ,dc=fukuoka-u,dc=ac,dc=jp (&(objectClass=posixGroup)(|(gidNumber=1125)(memberUID=yigarash))) [auth.php:267]
LDAP usergroup: www [auth.php:286]
LDAP usergroup: yigarash [auth.php:286]
LDAP usergroup: yonedacvs [auth.php:286]
LDAP usergroup: venture [auth.php:286]
LDAP usergroup: mac [auth.php:286]
LDAP usergroup: qbic [auth.php:286]
macos_x.txt · Last modified: 2016/11/03 10:44 by yigarash
CC Attribution-Noncommercial-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0