Use pty for fedora ssh connections
Use sudo only if needed