I have a situation where I need to use an SSH Key (instead of user/password) to login to a server. SSHSession only takes a file as input for this. Worked fine in vRO 7 but with vRA 8, the disk is transient (container). So I thought I would take a Resource Element, write it to a temp file and then hand that in to ssh. But I can't seem to create a local file. I tried opening a file in System.getTempDirectory() but no luck. I tried /tmp and /var/tmp, still no joy. Any suggestions?
Never mind. System.getTempDirectory() worked 2nd time around. Go figure!
Since it is only a temp file, writing locally is good; as long as you don't expect it to be there in the next element (container/node switch over may delete it).