Using SSH+SCP to connect to Real-time Data Feed
in
Programming Questions
•
2 years ago
Hi all,
I'm working on a project using real-time data and I'm a bit confused with how to do this exactly. I'll be using an SSH authentication process at their request, and as I understand it, after sending them my public part of the key, I can connect to their server via Terminal (os x). Once I've successfully logged on via Terminal, in my Processing code I'm wondering how to say "look to port number 22 (default SCP port), get latest file from this directory". Is this simply using the Serial object (Serial = new Serial(this, Serial.list()[22], 9600)), then specify the file path (with a bit of extra stuff around grabbing the latest file)?
Also, I am wondering if I can setup the initial login in Processing and bypass Terminal all together.
Sorry if this isn't so clear -- I'm kind of muddled right now!
I'm working on a project using real-time data and I'm a bit confused with how to do this exactly. I'll be using an SSH authentication process at their request, and as I understand it, after sending them my public part of the key, I can connect to their server via Terminal (os x). Once I've successfully logged on via Terminal, in my Processing code I'm wondering how to say "look to port number 22 (default SCP port), get latest file from this directory". Is this simply using the Serial object (Serial = new Serial(this, Serial.list()[22], 9600)), then specify the file path (with a bit of extra stuff around grabbing the latest file)?
Also, I am wondering if I can setup the initial login in Processing and bypass Terminal all together.
Sorry if this isn't so clear -- I'm kind of muddled right now!
2