Plasma transport in the Scrape-off-Layer of magnetically confined plasma and the plasma exhaust