Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TTSSH に相対パスを渡した場合の扱いが Tera Term と異なる #159

Closed
nmaya opened this issue Mar 13, 2024 · 3 comments
Closed
Labels
bug Something isn't working
Milestone

Comments

@nmaya
Copy link
Member

nmaya commented Mar 13, 2024

Tera Term 5 では /F= 引数のファイル名が絶対パスでないときは、%APPDATA%\teraterm5\ からの相対パスと見なされるようになりました。

TTSSH の INI ファイルの指定 /f, /ssh-f, /ssh-consume はこの変更に対応できていないようです。
また、/keyfile の扱いも一貫しているべきと思います。

ファイル名が絶対パスでないときは、ttxssh.dll からの相対パスと見なされます。

origin

https://osdn.net/projects/ttssh2/ticket/57660

TeraTerm 5.2 document for /F option says If this value is not a full path, it is understood as a relative path from %APPDATA%\teraterm5\

I made a copy of the TERATERM.INI file to modified new file to %APPDATA%\teraterm5\TERATERM_AM.INI and make sure it's saved in UTF-16LE with BOM format
I then changed 3 options in TERATERM_AM.INI

AutoWinClose=off
CipherOrder=MKN>H:J=G09
LogLevel=200

if I launch like this, only AutoWinClose takes effect. CipherOrder (reported by SSH server) and LogLevel (TTSSH.LOG doesn't have detailed content) doesn't do anything. if I add /ssh-v to command then LogLevel works, but CipherOrder still doesn't work

"C:\Program Files (x86)\teraterm5\ttermpro.exe" 10.10.227.1:22 /F="TERATERM_AM.INI" /ssh /2 /auth=password /user=guest /passwd=guest

if I launch like this with full path to file, then AutoWinClose, CipherOrder and LogLevel all take effect

"C:\Program Files (x86)\teraterm5\ttermpro.exe" 10.10.227.1:22 /F="%APPDATA%\teraterm5\TERATERM_AM.INI" /ssh /2 /auth=password /user=guest /passwd=guest
@nmaya nmaya added the bug Something isn't working label Mar 13, 2024
zmatsuo added a commit that referenced this issue Mar 17, 2024
- 次のオプション時
  - /f=<file>
  - /ssh-f=<file>
  - /ssh-consume=<file>
  - /keyfile=<file>
- %APPDATA%\teraterm5\ からの相対パスとした
  - 修正前は ttxssh.dll(ttermpro.exe) からの相対パスだった
- ドキュメント修正
@zmatsuo
Copy link
Member

zmatsuo commented Mar 17, 2024

修正しました。
チェックしていただけないでしょうか。

@nmaya nmaya added this to the 5.3 milestone Mar 18, 2024
@nmaya
Copy link
Member Author

nmaya commented Mar 20, 2024

確認しました。ありがとうございます。

zmatsuo added a commit that referenced this issue Mar 23, 2024
zmatsuo added a commit that referenced this issue Mar 23, 2024
@zmatsuo
Copy link
Member

zmatsuo commented Mar 23, 2024

ありがとうございます。
mainにマージしました。
クローズします。

@zmatsuo zmatsuo closed this as completed Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants