Author Topic: ssh raw commands  (Read 525 times)

dmatora

  • Jr. Member
  • **
  • Posts: 5
ssh raw commands
« on: October 01, 2017, 08:13:00 PM »
Currently when I send raw command to ssh I don't get any output
And when I click open terminal on sftp folder, nothing happens
Would it be possible to have a button or a key combination, that would reveal remote terminal in the current sftp folder and see output of ssh commands there?

JD

  • Administrator
  • FTP Guru
  • *****
  • Posts: 2846
Re: ssh raw commands
« Reply #1 on: October 01, 2017, 10:51:22 PM »
Are you connected via SFTP in the first place, or you're using FTP first? I ask because if nothing happens it usually means there is no ssh access allowed. There is no additional log to view other than the Show FTP Transcript option from the File menu, although in this case I think there will be nothing shown as the ssh connection isn't being established.

dmatora

  • Jr. Member
  • **
  • Posts: 5
Re: ssh raw commands
« Reply #2 on: October 01, 2017, 11:02:22 PM »
I am using sftp

JD

  • Administrator
  • FTP Guru
  • *****
  • Posts: 2846
Re: ssh raw commands
« Reply #3 on: October 02, 2017, 08:43:19 AM »
In that case, I think shell access has been disabled by your provider.

JD

  • Administrator
  • FTP Guru
  • *****
  • Posts: 2846
Re: ssh raw commands
« Reply #4 on: October 02, 2017, 11:20:39 AM »
Can you connect manually via ssh in Terminal?

dmatora

  • Jr. Member
  • **
  • Posts: 5
Re: ssh raw commands
« Reply #5 on: October 02, 2017, 01:13:24 PM »
yes, I'm connecting to virtual machine, so no provider restriction can affect that, and manual ssh connection works fine, same as sftp

dmatora

  • Jr. Member
  • **
  • Posts: 5
Re: ssh raw commands
« Reply #6 on: October 02, 2017, 01:23:11 PM »
Actually I gave it another try after rebooting machine (basically after restarting terminal process) and now it's working.

But each time I change folder/server, to get that reflected on terminal window, I have to wait it to establish new ssh connection.
Yet, when I use it to automatically go to current folder I can't go though my old commands with up arrow keyboard button, since each call is separate session.
Any chance you could implement keeping terminal session hanging in background always in sync on folder and ready on demand without any delay, like phpStorm/Nible Commander/Far Commander do?

JD

  • Administrator
  • FTP Guru
  • *****
  • Posts: 2846
Re: ssh raw commands
« Reply #7 on: October 02, 2017, 03:21:39 PM »
Yes, each time you choose Open In Terminal it starts a new connection in Terminal app (or iTerm if you have it installed). That's expected behaviour.

Controlling Terminal/iTerm is tricky through the AppleScript-only API, so I can't promise to provide further features in that regard, but I can certainly take a look.

dmatora

  • Jr. Member
  • **
  • Posts: 5
Re: ssh raw commands
« Reply #8 on: October 02, 2017, 03:24:14 PM »
Even if api is limited, I'm pretty sure there is ssh library you can use use to build custom terminal

JD

  • Administrator
  • FTP Guru
  • *****
  • Posts: 2846
Re: ssh raw commands
« Reply #9 on: October 03, 2017, 01:27:16 PM »
Of course a full built-in terminal would be a great solution, but ultimately a dedicated terminal app will always have better functionality. Anyway, good ideas to consider for the future. Thanks! :)