Hi, we have a SAS grid with 8 grid nodes linux boxes, users wants to connect via sFTP third parties tool to the SAS grid nodes to browse files present in amounted file system. It looks like there is an extra authentication layer handled by the Metadata tier that is applied to those sFTP connection. Do you have any reference to specific documentation mentioning this additional authentication layer that looks to be applied only if connection is done via third parties sFTP tools ?
Thanks
Kind regards.
Except for the SAS binaries and some config files wouldn't most of your files/data be stored on a shared file system like gpfs, lustre, etc. that's mounted to the grid nodes? If so then where comes SAS into play for 3rd party sftp access to the shared file system?
So you just need to be able to create an sFTP connection to one of the grid nodes where Lustre is mounted with a user that got sufficient permissions to browse the file system and you should be good to go. No SAS involved.
Answer from chatGPT:
To establish an SFTP (Secure File Transfer Protocol) connection to a server, several components and settings must be enabled:
SFTP Server: The server must have an SFTP server software or service running. This is typically part of the SSH server package, such as OpenSSH, which supports SFTP by default.
SSH Access: Since SFTP operates over SSH, the SSH service must be enabled on the server. Ensure that the SSH daemon (e.g., sshd
on Linux) is running.
Firewall Rules: Ensure that the firewall settings on the server allow incoming connections on port 22 (the default port for SSH and SFTP). If the server is using a different port for SSH, you need to configure the firewall to allow that port.
User Permissions: The user account you are using to connect must have the necessary permissions to access the directories and files you want to transfer. Ensure that the user is correctly configured on the server.
SFTP Client: On the client side, you need an SFTP client application or command-line tool. Common options include command-line tools like sftp
or graphical clients like FileZilla or WinSCP.
Authentication: The authentication method must be set up correctly. This usually involves:
~/.ssh/authorized_keys
file and that the private key is properly configured on the client side.Configuration Files: Ensure that the server’s SSH configuration file (/etc/ssh/sshd_config
on Linux) allows SFTP connections. Look for lines like Subsystem sftp /usr/lib/openssh/sftp-server
or similar, and verify that SFTP is enabled.
By ensuring these components and settings are properly configured, you can successfully establish an SFTP connection to a server.
If you don't intent to remotely spawn SAS processes via sFTP then I can't think of any reason why the SAS Metadata Server should be involved.
SAS files (tables) as such are just files on a file system. To open them you need of course software that can open them and you would need to download them to the client side for opening (eg. with the SAS Universal Viewer).
What worked for me over many years for development in a SAS client/server environment (whether Grid or not) is a combination of SAS EG/Studio, WinSCP and Putty (or MobaXterm).
A scp or sFTP connection without any SAS layer involved has also the advantage that it's still working when the SAS services are down.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.